File Storage¶
The fs module provides read-only access to the app’s work tree and the basic Akshell lib.
- class FileStorage¶
A FileStorage object represents a file tree. This class cannot be instantiated directly; there are only two instances of it: code and lib.
- exists(path)¶
Test whether an entry exists.
- isFile(path)¶
Test whether an entry exists and is a file.
- isFolder(path)¶
Test whether an entry exists and is a folder
- read(path)¶
Return a Binary object with the file’s content; throw a NoSuchEntryError if there’s no such entry or an EntryIsFolderError if it’s a folder.
- list(path)¶
Return a sorted array of names of folder’s subentries; throw a NoSuchEntryError if there’s no such entry or an EntryIsFileError if it’s a file.
- code¶
A FileStorage object for accessing the app’s work tree.
- lib¶
A FileStorage object for accessing the basic Akshell lib.
« Database
Proxy »