tempfile.gettempprefix() Return the filename prefix used to create temporary files. This does not contain the directory component
common_files Files in both a and b.
tempfile.tempdir When set to a value other than None, this variable defines the default value for the dir
shutil.register_archive_format(name, function[, extra_args[, description]]) Register an archiver for the format name
fileinput.isstdin() Returns true if the last line was read from sys.stdin, otherwise returns false.
glob.glob(pathname, *, recursive=False) Return a possibly-empty list of path names that match pathname, which must
Path.write_bytes(data) Open the file pointed to in bytes mode, write data to it, and close the file:
Path.touch(mode=0o666, exist_ok=True) Create a file at this given path. If mode is given, it is combined with the process’
os.path.samefile(path1, path2) Return True if both pathname arguments refer to the same file or directory. This
PurePath.joinpath(*other) Calling this method is equivalent to combining the path with each of the other arguments
Page 1 of 19