[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Problem with Big File Name

From: steveking <steveking_at_gmx.ch>
Date: 2005-08-03 18:55:42 CEST

Scott Palmer wrote:

>> This is one more character than Windows can handle for a path and
>> filename. Path and filename together (with terminating NUL) is
>> limited to a maximum of 256 characters (defined by MAX_PATH).
> That's not entirely true. A path can be MUCH larger than 256
> characters. But it depends on which APIs you use and what format the
> path is expressed in.
> Individual names in the path can be up to 255 characters long. The
> entire path can be about 32k characters long.
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/
> fileio/fs/naming_a_file.asp
> My guess is that the APR library is using the more limited APIs.

Yes, NTFS (not windows per se, this only works on NTFS partitions) can
handle filepaths up to 32k. But: the shell can't! So every program using
the shell (file open/save dialogs for example) won't be able to handle
such paths at all. So that bigger limit is basically useless.
The only workaround (if you accidentally create such a long path with a
program not using shell API's) is to SUBST a subfolder to a drive
letter. Then you can handle the shortened path from that drive letter on
with the shell again.


   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 3 19:01:51 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.