os.path.splitdrive(path) Split the pathname path into a pair (drive, tail) where drive is either
os.path.commonprefix(list) Return the longest path prefix (taken character-by-character) that is a prefix of all paths in list
Path.read_text(encoding=None, errors=None) Return the decoded contents of the pointed-to file as a string:
tempfile.mkdtemp(suffix=None, prefix=None, dir=None) Creates a temporary directory in the most secure manner possible. There
Path.is_socket() Return True if the path points to a Unix socket (or a symbolic link pointing to a Unix socket)
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
Path.lchmod(mode) Like Path.chmod() but, if the path points to a symbolic link, the symbolic link’s mode is changed
PurePath.relative_to(*other) Compute a version of this path relative to the path represented by other. If it’s impossible
class filecmp.dircmp(a, b, ignore=None, hide=None) Construct a new directory comparison object, to compare the directories a
Page 18 of 19