swh.fuse.fs.entry module#
- class swh.fuse.fs.entry.EntryMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Bases:
IntEnum
Default entry mode and permissions for the FUSE.
The FUSE mount is always read-only, even if permissions contradict this statement (in a context of a directory, entries are listed with permissions taken from the archive).
- RDONLY_FILE = 33060#
- RDONLY_DIR = 16749#
- RDONLY_LNK = 41252#
- RDWR_DIR = 16877#
- class swh.fuse.fs.entry.FuseEntry(name: str, mode: int, depth: int, fuse: Fuse)[source]#
Bases:
object
Main wrapper class to manipulate virtual FUSE entries
- class swh.fuse.fs.entry.FuseFileEntry(name: str, mode: int, depth: int, fuse: Fuse)[source]#
Bases:
FuseEntry
FUSE virtual file entry
- class swh.fuse.fs.entry.FuseDirEntry(name: str, mode: int, depth: int, fuse: Fuse)[source]#
Bases:
FuseEntry
FUSE virtual directory entry
- validate_entry(name: str) bool [source]#
Return true if the name matches the directory entries regular expression, and false otherwise
- async get_entries(offset: int = 0) AsyncIterator[FuseEntry] [source]#
Return the child entries of a directory entry using direntry cache