:py:mod:`dissect.target.helpers.compat.path_common` =================================================== .. py:module:: dissect.target.helpers.compat.path_common Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: :nosignatures: dissect.target.helpers.compat.path_common.scandir dissect.target.helpers.compat.path_common.realpath dissect.target.helpers.compat.path_common.isjunction dissect.target.helpers.compat.path_common.io_open .. py:function:: scandir(path: dissect.target.helpers.fsutil.TargetPath) -> _DissectScandirIterator .. py:function:: realpath(path: dissect.target.helpers.fsutil.TargetPath, *, strict: bool = False) -> str Return the canonical path of the specified filename, eliminating any symbolic links encountered in the path. .. py:function:: isjunction(path: dissect.target.helpers.fsutil.TargetPath) -> bool Return True if the path is a junction. .. py:function:: io_open(path: dissect.target.helpers.fsutil.TargetPath, mode: str = 'rb', buffering: int = 0, encoding: Optional[str] = None, errors: Optional[str] = None, newline: Optional[str] = None) -> IO Open file and return a stream. Supports a subset of features of the real pathlib.open/io.open. Note: in contrast to regular Python, the mode is binary by default. Text mode has to be explicitly specified. Buffering is also disabled by default.