What is the maximum allowed subfolder depth?

First I wanted to ask: "What is the maximum allowed subfolder for Windows"

But then I thought, maybe my hosting provider is not on Windows, but on Linux or something else. Therefore, I ask what is the maximum allowed subfolder for all major operating systems, which is usually used by the web hosting provider. (Can I say Linux, Mac or Windows?)

And again, based on your impressions, do web hosting sites limit the number of subfolders we can make?

(Why is this? Because I want each user to have their own folder for easy access to their images. Would it be nice, or is this a bad practice? Still new to programming.)

+5
source share
3 answers

The limit is not at the depth of nested subdirectories (you could have dozens of them, even more), but in file systems and their quotas.

Also, very long file paths are inconvenient (and may be slightly inefficient). Programmatically, a path to a file with a length of several hundred or even thousands of characters is possible; but the human brain cannot remember such long file paths.

Most file systems (on Linux) have a fixed limit on the number of inodes .

, (, , ). (, ls * ). , /somepath/a/0001... /somepath/z/9999 /somepath/a0001... /somepath/z9999

, , , , . /some/path/A/userAaron/images/foobar /some/path/B/userBasile/images/barfoo .. , /some/path/A/ ..

: - , - .

- SQL ( ) , . , .

.

+3

Windows 260 . , , 260-directory path length.

, , .

+3

- - . Windows, 5k , , 10k 50k !

-1

All Articles