limit of 256 characters in pathname

Ville Herva vherva at
Sat Sep 14 18:42:00 EST 2002

On Wed, Sep 11, 2002 at 07:40:01PM +0200, you [bart.coninckx at] wrote:
> Hi,
> We use rsync on NT (server and client) and we get errors on filenames with
> a path that has in total more than 256 characters. This seems to be caused
> by a limit in rsync, not in NT. Is there a way to break this limit withuo
> having to manually shorten all this filenames?

Which rsync version for windows are you using?

If you are using the cygwin version, the 256 character limit is set by
the cygwin API. 

You are right in that NT (/w2k/xp) and NTFS allow for longer filenames, but
not through the normal Win32 API functions. You need to use the unicode
versions of the file access functions, prepend a '\\?\' prefix to turn of
file path parsing, and even then, individual path components cannot exceed
MAX_PAH (255).

More information about the rsync mailing list