stat.S_ISREG(mode) Return non-zero if the mode is from a regular file.
os.path.isfile(path) Return True if path is an existing regular file. This follows symbolic links, so
stat.S_ISDIR(mode) Return non-zero if the mode is from a directory.
PurePath.joinpath(*other) Calling this method is equivalent to combining the path with each of the other arguments
Path.rename(target) Rename this file or directory to the given target. On Unix, if target exists and is a
shutil.get_unpack_formats() Return a list of all registered formats for unpacking. Each element of the returned sequence is
tempfile.gettempprefix() Return the filename prefix used to create temporary files. This does not contain the directory component
fileinput.filename() Return the name of the file currently being read. Before the first line has been read, returns None
shutil.copyfileobj(fsrc, fdst[, length]) Copy the contents of the file-like object fsrc to the file-like object fdst
Path.touch(mode=0o666, exist_ok=True) Create a file at this given path. If mode is given, it is combined with the process’
Page 3 of 19