os.path.lexists(path) Return True if path refers to an existing path. Returns True for broken
fileinput.isstdin() Returns true if the last line was read from sys.stdin, otherwise returns false.
tempfile.gettempprefix() Return the filename prefix used to create temporary files. This does not contain the directory component
os.path.isfile(path) Return True if path is an existing regular file. This follows symbolic links, so
fileinput.hook_encoded(encoding) Returns a hook which opens each file with
tempfile.tempdir When set to a value other than None, this variable defines the default value for the dir
PurePath.as_uri() Represent the path as a file URI.
class pathlib.WindowsPath(*pathsegments) A subclass of Path and PureWindowsPath, this class represents
Path.mkdir(mode=0o777, parents=False, exist_ok=False) Create a new directory at this given path. If mode is given,
os.path.samefile(path1, path2) Return True if both pathname arguments refer to the same file or directory. This
Page 3 of 19