In article , Lewis
wrote:
I donšt know what the max path length is on macOS. It appears to exceed
32,767 characters. I havenšt attempted to test that. Have at it.
HFS+ has no limit on path length, but I think macOS does. I don't recall
what it is.
classic mac os didn't rely on path names to access files, yet another
thing it got right. instead, it used a directory id and a file name
(optionally a file id). path names could still be used, but there was
rarely, if ever, a reason to do so.
unfortunately, mac os x took a big step backwards and relies on path
names in almost every case, as does any unix. move the wrong file and
things will break, possibly even rendering a system non-bootable.
as for length, from syslimits.h:
#define PATH_MAX 1024 /* max bytes in pathname */
however,
https://stackoverflow.com/questions/...-what-is-the-m
ax-path-length
From actual testing on Mac OS X Yosemite, the max path length is 1016
characters. 1017 fails.