[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] file length



At 19:22 -0500 3/15/2000, Chris Nandor wrote:
>>Does the max file name/path length vary with versions of MacOS?
>
>No, it is universally 31 chars.

It is now.  But...

   In the original "flat" file system, the official maximum was 127 and the
actual maximum was 253 (but only if the volume name was 1 character:
vol:filename had to be 255 or less to fit into Pascal strings).  Anything
over 63 found on an MFS floppy would crash the 7.0 and later related Finder
versions by overflowing the FSSpec structure.

  The underlying file name limit (in HFS+) is now 256 Unicode characters,
but the needed calls aren't there yet to use them.

  --John
-- 
When there is nothing pressing, putter around with this or that.
   (Fortune cookie)
John W. Baxter   jwbaxter@olympus.net   (or jwblist if responding to
mailing list)
   Port Ludlow, WA USA

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org