classmethod Path.cwd() Return a new path object representing the current directory (as returned by
Path.read_bytes() Return the binary contents of the pointed-to file as a bytes object:
glob.escape(pathname) Escape all special characters ('?', '*' and '['). This is useful
Path.chmod(mode) Change the file mode and permissions, like
os.path.getatime(path) Return the time of last access of path. The return value is a number giving the number of seconds
fileinput.lineno() Return the cumulative line number of the line that has just been read. Before the first line has been read
shutil.rmtree(path, ignore_errors=False, onerror=None) Delete an entire directory tree; path must point to a directory
fileinput.filelineno() Return the line number in the current file. Before the first line has been read, returns 0
fileinput.close() Close the sequence.
shutil.copy(src, dst, *, follow_symlinks=True) Copies the file src to the file or directory dst. src
Page 16 of 19