:py:mod:`dissect.target.helpers.polypath` ========================================= .. py:module:: dissect.target.helpers.polypath .. autoapi-nested-parse:: Filesystem path manipulation functions. Similar to posixpath and ntpath, but with support for alternative separators. Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: :nosignatures: dissect.target.helpers.polypath.normalize dissect.target.helpers.polypath.isabs dissect.target.helpers.polypath.join dissect.target.helpers.polypath.split dissect.target.helpers.polypath.splitroot dissect.target.helpers.polypath.basename dissect.target.helpers.polypath.dirname dissect.target.helpers.polypath.normpath dissect.target.helpers.polypath.abspath dissect.target.helpers.polypath.relpath dissect.target.helpers.polypath.commonpath Attributes ~~~~~~~~~~ .. autoapisummary:: dissect.target.helpers.polypath.re_normalize_path dissect.target.helpers.polypath.re_normalize_sbs_path dissect.target.helpers.polypath.splitext dissect.target.helpers.polypath.splitdrive .. py:data:: re_normalize_path .. py:data:: re_normalize_sbs_path .. py:function:: normalize(path: str, alt_separator: str = '') -> str .. py:function:: isabs(path: str, alt_separator: str = '') -> bool .. py:function:: join(*args, alt_separator: str = '') -> str .. py:function:: split(path: str, alt_separator: str = '') -> str .. py:data:: splitext .. py:data:: splitdrive .. py:function:: splitroot(path: str, alt_separator: str = '') -> tuple[str, str] .. py:function:: basename(path: str, alt_separator: str = '') -> str .. py:function:: dirname(path: str, alt_separator: str = '') -> str .. py:function:: normpath(path: str, alt_separator: str = '') -> str .. py:function:: abspath(path: str, cwd: str = '', alt_separator: str = '') -> str .. py:function:: relpath(path: str, start: str, alt_separator: str = '') -> str .. py:function:: commonpath(paths: list[str], alt_separator: str = '') -> str