class pathlib.PosixPath(*pathsegments) A subclass of Path and PurePosixPath, this class represents
Path.read_text(encoding=None, errors=None) Return the decoded contents of the pointed-to file as a string:
os.path.commonprefix(list) Return the longest path prefix (taken character-by-character) that is a prefix of all paths in list
fileinput.nextfile() Close the current file so that the next iteration will read the first line from the next file (if any);
same_files Files which are identical in both a and b, using the class’s file comparison operator.
os.path.relpath(path, start=os.curdir) Return a relative filepath to path either from the current directory or from
fileinput.fileno() Return the integer “file descriptor” for the current file. When no file is opened (before the first line
Path.samefile(other_path) Return whether this path points to the same file as other_path, which can be either a Path
os.path.commonpath(paths) Return the longest common sub-path of each pathname in the sequence paths. Raise ValueError
stat.S_ISFIFO(mode) Return non-zero if the mode is from a FIFO (named pipe).
Page 17 of 19