fileinput.hook_encoded(encoding) Returns a hook which opens each file with
class pathlib.WindowsPath(*pathsegments) A subclass of Path and PureWindowsPath, this class represents
PurePath.parents An immutable sequence providing access to the logical ancestors of the path:
PurePath.as_uri() Represent the path as a file URI.
fnmatch.translate(pattern) Return the shell-style pattern converted to a regular expression.
os.path.samefile(path1, path2) Return True if both pathname arguments refer to the same file or directory. This
shutil.copystat(src, dst, *, follow_symlinks=True) Copy the permission bits, last access time, last modification time, and flags
fileinput.hook_compressed(filename, mode) Transparently opens files compressed with gzip and bzip2 (recognized by the extensions
Path.write_bytes(data) Open the file pointed to in bytes mode, write data to it, and close the file:
Path.is_dir() Return True if the path points to a directory (or a symbolic link pointing to a directory), False
Page 1 of 19