os.path.normpath(path) Normalize a pathname by collapsing redundant separators and up-level references so that A//B
Path.rglob(pattern) This is like calling
os.path.exists(path) Return True if path refers to an existing path or an open file descriptor. Returns
shutil.copyfile(src, dst, *, follow_symlinks=True) Copy the contents (no metadata) of the file named src to a file
shutil.unpack_archive(filename[, extract_dir[, format]]) Unpack an archive. filename is the full path of the archive
os.path.abspath(path) Return a normalized absolutized version of the pathname path. On most platforms, this is equivalent
fileinput.isfirstline() Returns true if the line just read is the first line of its file, otherwise returns false.
os.path.isdir(path) Return True if path is an existing directory. This follows symbolic links, so both
linecache.checkcache(filename=None) Check the cache for validity. Use this function if files in the cache may have changed on
Path.unlink() Remove this file or symbolic link. If the path points to a directory, use Path.rmdir() instead.
Page 13 of 19