Suppose I have a very large number of directories (say 100.000) in my filesystem and inside each directory there is a similar number of directories. Each directory can contain any number of files, but typically not more than a few. This structure goes to a constant depth (10).
My question is that is there a difference in time complexity (in the reading operation) if I read in a file from this directory structure like: /dir-34/dir-215/dir-345/file1 using Paths.get()  compared to reading a file form a simple file system like this:
/dir1
  /dir2
  /dir3
    file1
  /dir4
    file2
Note: This is just a theoretical question I just want to know whether the number of directories/files in the directory I'm trying to open a file from has any effect on the speed of the read operation.
 
     
     
     
    