Longest path name string in Mac OS X HFS +

I’m trying to find the final answer (for example, Apple’s developer documentation) for the maximum length of the full path line in Mac OS X. I saw various non-orientable sites that claim to be unlimited, 4096 characters, or 1024 characters, but could not find the answer on the web Apple website.

+3
source share
2 answers

If you look /usr/include/sys/syslimits.hat the Leopard system, you will see:

#define PATH_MAX                 1024   /* max bytes in pathname */

In addition, Technical Note 1150: HFS Plus Volume Format , discussing symbolic links, says:

"For maximum compatibility, the path length should be 1024 bytes or less."

+6

Source: https://habr.com/ru/post/1715447/


All Articles