os.path.isfile(path) Return True if path is an existing regular file. This follows symbolic links, so
glob.glob(pathname, *, recursive=False) Return a possibly-empty list of path names that match pathname, which must
Path.mkdir(mode=0o777, parents=False, exist_ok=False) Create a new directory at this given path. If mode is given,
Path.touch(mode=0o666, exist_ok=True) Create a file at this given path. If mode is given, it is combined with the process’
os.path.splitext(path) Split the pathname path into a pair (root, ext) such that root + ext == path
os.path.sameopenfile(fp1, fp2) Return True if the file descriptors fp1 and fp2 refer to the same
stat.S_ISLNK(mode) Return non-zero if the mode is from a symbolic link.
tempfile.mktemp(suffix='', prefix='tmp', dir=None) Deprecated since version
PurePath.parent The logical parent of the path: >>>
fnmatch.filter(names, pattern) Return the subset of the list of names that match pattern. It is the same as
Page 4 of 19