shutil.copy(src, dst, *, follow_symlinks=True) Copies the file src to the file or directory dst. src
glob.escape(pathname) Escape all special characters ('?', '*' and '['). This is useful
stat.S_ISFIFO(mode) Return non-zero if the mode is from a FIFO (named pipe).
os.path.samestat(stat1, stat2) Return True if the stat tuples stat1 and stat2 refer to the same
classmethod Path.cwd() Return a new path object representing the current directory (as returned by
Path.lchmod(mode) Like Path.chmod() but, if the path points to a symbolic link, the symbolic link’s mode is changed
Path.stat() Return information about this path (similarly to
os.path.commonpath(paths) Return the longest common sub-path of each pathname in the sequence paths. Raise ValueError
classmethod Path.home() Return a new path object representing the user’s home directory (as returned by
PurePath.relative_to(*other) Compute a version of this path relative to the path represented by other. If it’s impossible
Page 15 of 19