dissect.target.filesystems.exfat#

Module Contents#

Classes#

ExfatFilesystem

Base class for filesystems.

ExfatFilesystemEntry

Base class for filesystem entries.

class dissect.target.filesystems.exfat.ExfatFilesystem(fh=None, *args, **kwargs)#

Bases: dissect.target.filesystem.Filesystem

Base class for filesystems.

__fstype__ = 'exfat'#
get(path)#

Returns a ExfatFilesystemEntry object corresponding to the given pathname

open(path)#

Return file handle (file like object)

iterdir(path)#

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

scandir(path)#

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

stat(path)#

Returns POSIX file status results

class dissect.target.filesystems.exfat.ExfatFilesystemEntry(fs, entry=None, path=None)#

Bases: dissect.target.filesystem.FilesystemEntry

Base class for filesystem entries.

__repr__()#

Return repr(self).

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.

get(path)#

Get a filesystem entry relative from the current one.

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.

stat()#

Return the stat information of this entry.

open()#

Returns file handle (file like object)

Read the link where this entry points to, return the resulting path as string.

If it is a symlink and returns the entry that corresponds to that path. This means it follows the path a link points to, it tries to do it recursively.

Returns:

The path the link points to.

Read the link where this entry points to, return the resulting path as FilesystemEntry.

If it is a symlink and returns the string that corresponds to that path. This means it follows the path a link points to, it tries to do it recursively.

Returns:

The filesystem entry the link points to.

lstat()#

Determine the stat information of this entry, without resolving the symlinks.

When it detects a symlink, it will stat the information of the symlink, not the path it points to.

Returns:

The stat information of this entry.

attr()#

The attributes related to this entry, resolving any symlinks.

If the entry is a symbolic link, it will attempt to resolve it first. Resulting in the attr information of the entry it points to.

Returns:

The attributes of this entry.

lattr()#

The attributes related to this current entry, without resolving links.

Returns:

The attributes of this entry.