fileinput.close() Close the sequence.
os.path.splitdrive(path) Split the pathname path into a pair (drive, tail) where drive is either
classmethod Path.cwd() Return a new path object representing the current directory (as returned by
Path.read_text(encoding=None, errors=None) Return the decoded contents of the pointed-to file as a string:
PurePath.relative_to(*other) Compute a version of this path relative to the path represented by other. If it’s impossible
os.path.basename(path) Return the base name of pathname path. This is the second element of the pair returned by passing
stat.S_ISCHR(mode) Return non-zero if the mode is from a character special device file.
shutil.make_archive(base_name, format[, root_dir[, base_dir[, verbose[, dry_run[, owner[, group[, logger]]]]]]]) Create an archive
fileinput.nextfile() Close the current file so that the next iteration will read the first line from the next file (if any);
os.path.commonprefix(list) Return the longest path prefix (taken character-by-character) that is a prefix of all paths in list
Page 16 of 19