os.path.basename(path) Return the base name of pathname path. This is the second element of the pair returned by passing
fileinput.fileno() Return the integer “file descriptor” for the current file. When no file is opened (before the first line
Path.chmod(mode) Change the file mode and permissions, like
os.path.relpath(path, start=os.curdir) Return a relative filepath to path either from the current directory or from
tempfile.mkstemp(suffix=None, prefix=None, dir=None, text=False) Creates a temporary file in the most secure manner possible
os.path.dirname(path) Return the directory name of pathname path. This is the first element of the pair returned by
report_partial_closure() Print a comparison between a and b and common immediate subdirectories.
Path.is_symlink() Return True if the path points to a symbolic link, False otherwise.
left_only Files and subdirectories only in a.
glob.escape(pathname) Escape all special characters ('?', '*' and '['). This is useful
Page 17 of 19