dissect.target.helpers.polypath

Filesystem path manipulation functions.

Similar to posixpath and ntpath, but with support for alternative separators.

Module Contents

Functions

Attributes

dissect.target.helpers.polypath.re_normalize_path
dissect.target.helpers.polypath.re_normalize_sbs_path
dissect.target.helpers.polypath.normalize(path: str, alt_separator: str = '') str
dissect.target.helpers.polypath.isabs(path: str, alt_separator: str = '') bool
dissect.target.helpers.polypath.join(*args, alt_separator: str = '') str
dissect.target.helpers.polypath.split(path: str, alt_separator: str = '') str
dissect.target.helpers.polypath.splitext
dissect.target.helpers.polypath.splitdrive
dissect.target.helpers.polypath.splitroot(path: str, alt_separator: str = '') tuple[str, str]
dissect.target.helpers.polypath.basename(path: str, alt_separator: str = '') str
dissect.target.helpers.polypath.dirname(path: str, alt_separator: str = '') str
dissect.target.helpers.polypath.normpath(path: str, alt_separator: str = '') str
dissect.target.helpers.polypath.abspath(path: str, cwd: str = '', alt_separator: str = '') str
dissect.target.helpers.polypath.relpath(path: str, start: str, alt_separator: str = '') str
dissect.target.helpers.polypath.commonpath(paths: list[str], alt_separator: str = '') str