class pathlib.PosixPath(*pathsegments) A subclass of Path and PurePosixPath, this class represents
PurePath.drive A string representing the drive letter or name, if any:
shutil.get_terminal_size(fallback=(columns, lines)) Get the size of the terminal window. For
PurePath.match(pattern) Match this path against the provided glob-style pattern. Return True if matching is successful
shutil.get_archive_formats() Return a list of supported formats for archiving. Each element of the returned sequence is a tuple
stat.S_IMODE(mode) Return the portion of the file’s mode that can be set by
Path.is_socket() Return True if the path points to a Unix socket (or a symbolic link pointing to a Unix socket)
os.path.normcase(path) Normalize the case of a pathname. On Unix and Mac OS X, this returns the path unchanged; on case-insensitive
PurePath.relative_to(*other) Compute a version of this path relative to the path represented by other. If it’s impossible
Path.samefile(other_path) Return whether this path points to the same file as other_path, which can be either a Path
Page 18 of 19