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:
fileinput.nextfile() Close the current file so that the next iteration will read the first line from the next file (if any);
os.path.samestat(stat1, stat2) Return True if the stat tuples stat1 and stat2 refer to the same
os.path.splitdrive(path) Split the pathname path into a pair (drive, tail) where drive is either
os.path.commonprefix(list) Return the longest path prefix (taken character-by-character) that is a prefix of all paths in list
classmethod Path.home() Return a new path object representing the user’s home directory (as returned by
common_dirs Subdirectories in both a and b.
classmethod Path.cwd() Return a new path object representing the current directory (as returned by
Path.stat() Return information about this path (similarly to
Page 15 of 19