[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: Erik Anderson <erikba_at_teamworkgroup.com>
Date: 2005-08-03 18:38:33 CEST

FYI, I do experience this limit quite a bit in my own programming, most
closely associated with the shlwapi.dll library (PathStripPath and related
API functions)

-----Original Message-----
From: Scott Palmer [mailto:scott.palmer@2connected.org]
Sent: Wednesday, August 03, 2005 9:35 AM
To: Steve Williams
Cc: karthik@vwebsol.com; users@subversion.tigris.org
Subject: Re: Problem with Big File Name

On 2-Aug-05, at 7:43 PM, Steve Williams wrote:
>
> ".svn\tmp\text-base\" (19)
> + 85 character path (85)
> + 143 character filename (143)
> + ".svn-base" (9)
> + NUL (1)
> = 257
>
> 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.

Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

  • application/x-pkcs7-signature attachment: smime.p7s
Received on Wed Aug 3 18:41:26 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.