realm
realm copied to clipboard
[bug] Not possible to get file and directory permissions without iterating the entire file tree
The Eldritch docs state:
The file.read method will read the contents of a file. If the file or directory doesn’t exist the method will error to avoid this ensure the file exists, and you have permission to read it.
Unfortunately, the only way to get file/directory permissions is through the file.list method. This means I cannot test if I can read a directory without starting at / and moving down.
Expected behavior
A function to get permissions of a file or directory. file.exists could return a file object or file.stat could be implemented