Path.touch(mode=0o666, exist_ok=True) Create a file at this given path. If mode is given, it is combined with the process’
Path.glob(pattern) Glob the given pattern in the directory represented by this path, yielding all matching files (of
tempfile.TemporaryDirectory(suffix=None, prefix=None, dir=None) This function securely creates a temporary directory using the
stat.S_ISDIR(mode) Return non-zero if the mode is from a directory.
PurePath.parents An immutable sequence providing access to the logical ancestors of the path:
Path.is_dir() Return True if the path points to a directory (or a symbolic link pointing to a directory), False
fileinput.filename() Return the name of the file currently being read. Before the first line has been read, returns None
fileinput.hook_compressed(filename, mode) Transparently opens files compressed with gzip and bzip2 (recognized by the extensions
common_files Files in both a and b.
shutil.get_unpack_formats() Return a list of all registered formats for unpacking. Each element of the returned sequence is
Page 2 of 19