dissect.target.filesystems.fat#

Module Contents#

Classes#

FatFilesystem

Base class for filesystems.

FatFilesystemEntry

Base class for filesystem entries.

Attributes#

log

dissect.target.filesystems.fat.log#
class dissect.target.filesystems.fat.FatFilesystem(fh, *args, **kwargs)#

Bases: dissect.target.filesystem.Filesystem

Base class for filesystems.

__fstype__ = 'fat'#
static detect(fh)#

Detect a FAT filesystem on a given file-like object.

get(path)#

Returns a FatFilesystemEntry object corresponding to the given pathname

class dissect.target.filesystems.fat.FatFilesystemEntry(fs: Filesystem, path: str, entry: FilesystemEntry)#

Bases: dissect.target.filesystem.FilesystemEntry

Base class for filesystem entries.

get(path)#

Get a filesystem entry relative from the current one.

open()#

Returns file handle (file-like object).

iterdir()#

List the directory contents of a directory. Returns a generator of strings.

scandir()#

List the directory contents of this directory. Returns a generator of filesystem entries.

Return whether this entry is a link.

is_dir()#

Return whether this entry is a directory. Resolves symlinks when possible.

is_file()#

Return whether this entry is a file. Resolves symlinks when possible.

stat()#

Return the stat information of this entry.

lstat()#

Return the stat information of the given path, without resolving links.