• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Maximum file name length?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Maximum file name length?


  • Subject: Re: Maximum file name length?
  • From: Ryan Britton <email@hidden>
  • Date: Mon, 14 Nov 2005 21:35:01 -0800

Interesting.. Did not know that. I assume this only works for a mounted file system?


On Nov 14, 2005, at 8:51 PM, Brian Bergstrand wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Nov 14, 2005, at 9:24 PM, Ryan Britton wrote:

You can't check this programmatically as far as I know. Give this a shot:


Sure you can:

man pathconf

Specifically, the _PC_PATH_MAX selector.


http://en.wikipedia.org/wiki/Comparison_of_file_systems

On Nov 14, 2005, at 6:09 PM, email@hidden wrote:

I've searched the archives and found questions without answers. I've searched the documentation and learned nothing.

How do I know what the maximum allowed filename length is for a given file system?

NSFileManager comes close with fileSystemAttributesAtPath in that it gives me meta-data about the path, but it tells me nothing of the format of the drive or path lengths or file name lengths or anything useful.

(If you say "try Carbon" please also reference a function because that's lacking this information as well as far as I can tell ...)

Thanks!


Brian Bergstrand <http://www.bergstrand.org/brian/> PGP Key ID: 0xB6C7B6A2

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFDeWlxedHYW7bHtqIRAjM5AJ0Siomf4YvKzZZXO6RZJILlQxGMZwCg6oud
sHazZsMbSQ5b8TtvsAYPzo8=
=K0IG
-----END PGP SIGNATURE-----

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Maximum file name length? (From: email@hidden)
 >Re: Maximum file name length? (From: Ryan Britton <email@hidden>)
 >Re: Maximum file name length? (From: Brian Bergstrand <email@hidden>)

  • Prev by Date: mouseMoved when inactive?
  • Next by Date: CGImage functions
  • Previous by thread: Re: Maximum file name length?
  • Next by thread: Re: Maximum file name length?
  • Index(es):
    • Date
    • Thread