os.path.isfile(path) Return True if path is an existing regular file. This follows symbolic links, so
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.write_bytes(data) Open the file pointed to in bytes mode, write data to it, and close the file:
fnmatch.translate(pattern) Return the shell-style pattern converted to a regular expression.
fileinput.filename() Return the name of the file currently being read. Before the first line has been read, returns None
common_files Files in both a and b.
PurePath.as_uri() Represent the path as a file URI.
tempfile.gettempprefix() Return the filename prefix used to create temporary files. This does not contain the directory component
Path.is_dir() Return True if the path points to a directory (or a symbolic link pointing to a directory), False
shutil.copystat(src, dst, *, follow_symlinks=True) Copy the permission bits, last access time, last modification time, and flags
Page 1 of 19