2 ms·
Of course no implementation is infinite, but in this case PATH_MAX with 4096 as a typical value seems particularly low.
by usr1106 2y ago
Of course no implementation is infinite, but in this case PATH_MAX with 4096 as a typical value seems particularly low.
- Arch-TK 2y agoThe blog post addresses this by using relative paths. Tested up to a path length of 30k apparently.
- omoikane 2y agoI believe somewhere after 30k is when they will run into file system limits. Despite being able to create directories nested to arbitrary depth with short file names, find() might not be able to read a directory if the total path length is too long. I found this out when I couldn't open a file with the path "./././name.h" where there are lots of "./" in front. And the reason why I got so many "./" was due to a clang preprocessor bug that modifies __FILE__: https://github.com/llvm/llvm-project/issues/43825 https://github.com/llvm/llvm-project/issues/43825
- Bootvis 2y agoCheck out section “Expected questions and answers”. For GNU it seems to work with path lengths larger than 4096.