Change the permissions.
Can throw:
Creates a directory.
Can throw:
The wanted dir path
Creates a file otherwise
Can throw:
The directory where the file will be saved
Reads a directory.
Can throw:
Reads a file.
Can throw:
Reads a file in chunks by a given len and position.
Can throw:
Reads a link.
Can throw:
Rename file.
Can throw:
The dest path
Deletes a directory
Can throw:
Returns 0 for success
Stat a file.
Can throw:
If file reading in chunks is supported on the current platform.
Optional
_path: stringCreates a symlink.
Can throw:
The src path
Deletes a file or a symlink.
Can throw:
This is a convenience implementation for readonly file systems with small files.
Write support might be added later.
In order to use it you only have to specify the directory structure as a hierarchy of maps, like