Closed valery1707 closed 5 years ago
Yes, we should check the permission on the directory, not on the directory entry.
Looking at the stat() documentation it seems we need to check for the execute permission of all the directories on the path to the file. http://man7.org/linux/man-pages/man2/stat.2.html
I just released 1.4.0 to Maven Central.
On virtual FS current user must have read permission to access
BasicFileAttributes
atMemoryFileSystem#readAttributes(AbstractPath, Class<A>, LinkOption...)
- is this correct behavior?On real OS - I can detect type (dir/file/link) even current don't have read permissions.
File:
Directory
Symbolic link:
Demo code: https://jdoodle.com/a/KbC