shutil.copy(src, dst, *, follow_symlinks=True) Copies the file src to the file or directory dst. src
fileinput.lineno() Return the cumulative line number of the line that has just been read. Before the first line has been read
fileinput.filelineno() Return the line number in the current file. Before the first line has been read, returns 0
glob.escape(pathname) Escape all special characters ('?', '*' and '['). This is useful
common_funny Names in both a and b, such that the type differs between the directories, or names for which
Path.samefile(other_path) Return whether this path points to the same file as other_path, which can be either a Path
PurePath.drive A string representing the drive letter or name, if any:
Path.exists() Whether the path points to an existing file or directory:
fileinput.nextfile() Close the current file so that the next iteration will read the first line from the next file (if any);
os.path.samestat(stat1, stat2) Return True if the stat tuples stat1 and stat2 refer to the same
Page 17 of 19