linecache.getline(filename, lineno, module_globals=None) Get line lineno from file named filename. This function
os.path.realpath(path) Return the canonical path of the specified filename, eliminating any symbolic links encountered in the
report() Print (to sys
Path.resolve() Make the path absolute, resolving any symlinks. A new path object is returned:
os.path.getsize(path) Return the size, in bytes, of path. Raise
stat.S_ISLNK(mode) Return non-zero if the mode is from a symbolic link.
class pathlib.Path(*pathsegments) A subclass of PurePath, this class represents concrete paths of the system’s
os.path.sameopenfile(fp1, fp2) Return True if the file descriptors fp1 and fp2 refer to the same
PurePath.parent The logical parent of the path: >>>
exception shutil.SameFileError This exception is raised if source and destination in copyfile() are the same file
Page 5 of 19