logoalt Hacker News

tasty_freezeyesterday at 3:58 PM1 replyview on HN

Isn't there a max filepath length? Or does find not ever deal with that and just deal in terms of building its own stack of inodes or something like that?


Replies

jonhohleyesterday at 10:15 PM

That’s what PATH_MAX is. It’s the size of the buffer used for paths - commonly 4096 bytes. You can’t navigate directly to a path longer than that, but you can navigate to relative paths beyond that (4096 bytes at a time).