os.path.basename(path) Return the base name of pathname path. This is the second element of the pair returned by passing
os.path.splitdrive(path) Split the pathname path into a pair (drive, tail) where drive is either
fileinput.close() Close the sequence.
PurePath.match(pattern) Match this path against the provided glob-style pattern. Return True if matching is successful
class pathlib.PosixPath(*pathsegments) A subclass of Path and PurePosixPath, this class represents
shutil.get_archive_formats() Return a list of supported formats for archiving. Each element of the returned sequence is a tuple
Path.read_bytes() Return the binary contents of the pointed-to file as a bytes object:
os.path.dirname(path) Return the directory name of pathname path. This is the first element of the pair returned by
Path.samefile(other_path) Return whether this path points to the same file as other_path, which can be either a Path
stat.S_ISWHT(mode) Return non-zero if the mode is from a whiteout.
Page 17 of 19