stat.S_ISDIR(mode) Return non-zero if the mode is from a directory.
fileinput.isstdin() Returns true if the last line was read from sys.stdin, otherwise returns false.
os.path.isfile(path) Return True if path is an existing regular file. This follows symbolic links, so
Path.rename(target) Rename this file or directory to the given target. On Unix, if target exists and is a
shutil.copyfileobj(fsrc, fdst[, length]) Copy the contents of the file-like object fsrc to the file-like object fdst
os.path.lexists(path) Return True if path refers to an existing path. Returns True for broken
shutil.copystat(src, dst, *, follow_symlinks=True) Copy the permission bits, last access time, last modification time, and flags
Path.touch(mode=0o666, exist_ok=True) Create a file at this given path. If mode is given, it is combined with the process’
shutil.register_archive_format(name, function[, extra_args[, description]]) Register an archiver for the format name
PurePath.joinpath(*other) Calling this method is equivalent to combining the path with each of the other arguments
Page 3 of 19