shutil.copy2(src, dst, *, follow_symlinks=True) Identical to copy() except that copy2() also attempts
Path.lchmod(mode) Like Path.chmod() but, if the path points to a symbolic link, the symbolic link’s mode is changed
stat.S_ISCHR(mode) Return non-zero if the mode is from a character special device file.
tempfile.mkstemp(suffix=None, prefix=None, dir=None, text=False) Creates a temporary file in the most secure manner possible
common_funny Names in both a and b, such that the type differs between the directories, or names for which
Path.exists() Whether the path points to an existing file or directory:
os.path.samestat(stat1, stat2) Return True if the stat tuples stat1 and stat2 refer to the same
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
Page 15 of 19