3 ms·
I 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
by omoikane 2y ago
I 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