os.path.normpath(path) Normalize a pathname by collapsing redundant separators and up-level references so that A//B
os.path.islink(path) Return True if path refers to a directory entry that is a symbolic link. Always False
stat.filemode(mode) Convert a file’s mode to a string of the form ‘-rwxrwxrwx’.
right_only Files and subdirectories only in b.
Path.unlink() Remove this file or symbolic link. If the path points to a directory, use Path.rmdir() instead.
fileinput.isfirstline() Returns true if the line just read is the first line of its file, otherwise returns false.
shutil.disk_usage(path) Return disk usage statistics about the given path as a named tuple
fnmatch.fnmatchcase(filename, pattern) Test whether filename matches pattern, returning
stat.S_ISBLK(mode) Return non-zero if the mode is from a block special device file.
left_list Files and subdirectories in a, filtered by hide and ignore.
Page 12 of 19