dissect.target.plugins.filesystem.walkfs
¶
Module Contents¶
Classes¶
Filesystem agnostic walkfs plugin. |
Functions¶
Generate a |
Attributes¶
- dissect.target.plugins.filesystem.walkfs.FilesystemRecord¶
- class dissect.target.plugins.filesystem.walkfs.WalkFSPlugin(target: dissect.target.Target)¶
Bases:
dissect.target.plugin.Plugin
Filesystem agnostic walkfs plugin.
- check_compatible() None ¶
Perform a compatibility check with the target.
This function should return
None
if the plugin is compatible with the current target (self.target
). For example, check if a certain file exists. Otherwise it should raise anUnsupportedPluginError
.- Raises:
UnsupportedPluginError – If the plugin could not be loaded.
- walkfs(walkfs_path: str = '/') Iterator[FilesystemRecord] ¶
Walk a target’s filesystem and return all filesystem entries.
- dissect.target.plugins.filesystem.walkfs.generate_record(target: dissect.target.target.Target, entry: dissect.target.filesystem.FilesystemEntry) FilesystemRecord ¶
Generate a
FilesystemRecord
from the givenFilesystemEntry
.- Parameters:
target –
Target
instanceentry –
FilesystemEntry
instance
- Returns:
Generated
FilesystemRecord
for the givenFilesystemEntry
.