Path.rename(target) Rename this file or directory to the given target. On Unix, if target exists and is a
glob.glob(pathname, *, recursive=False) Return a possibly-empty list of path names that match pathname, which must
shutil.copyfileobj(fsrc, fdst[, length]) Copy the contents of the file-like object fsrc to the file-like object fdst
stat.S_ISDIR(mode) Return non-zero if the mode is from a directory.
Path.is_dir() Return True if the path points to a directory (or a symbolic link pointing to a directory), False
PurePath.joinpath(*other) Calling this method is equivalent to combining the path with each of the other arguments
fileinput.hook_encoded(encoding) Returns a hook which opens each file with
stat.S_ISREG(mode) Return non-zero if the mode is from a regular file.
fileinput.filename() Return the name of the file currently being read. Before the first line has been read, returns None
class pathlib.WindowsPath(*pathsegments) A subclass of Path and PureWindowsPath, this class represents
Page 3 of 19