module documentation

Undocumented

Function ensure_directory Ensure that the parent directory of `path` exists
Function normpath Normalize a file/dir name for comparison purposes.
Function same_path Differs from os.path.samefile because it does not require paths to exist. Purely string based (no comparison between i-nodes). >>> same_path("a/b", "./a/b") True >>> same_path("a/b", "a/./b") True >>> same_path("a/b", "...
Type Alias _Path Undocumented
def ensure_directory(path): (source)

Ensure that the parent directory of `path` exists

def normpath(filename: _Path) -> str: (source)

Normalize a file/dir name for comparison purposes.

def same_path(p1: _Path, p2: _Path) -> bool: (source)

Differs from os.path.samefile because it does not require paths to exist. Purely string based (no comparison between i-nodes). >>> same_path("a/b", "./a/b") True >>> same_path("a/b", "a/./b") True >>> same_path("a/b", "././a/b") True >>> same_path("a/b", "./a/b/c/..") True >>> same_path("a/b", "../a/b/c") False >>> same_path("a", "a/b") False

Undocumented

Value
Union[str, os.PathLike]