pathlib.Path.mkdir()
  • References/Python/Python/File & Directory Access

Path.mkdir(mode=0o777, parents=False, exist_ok=False) Create a new directory at this given path. If mode is given,

2025-01-10 15:47:30
pathlib.Path.glob()
  • References/Python/Python/File & Directory Access

Path.glob(pattern) Glob the given pattern in the directory represented by this path, yielding all matching files (of

2025-01-10 15:47:30
pathlib.PurePath.parents
  • References/Python/Python/File & Directory Access

PurePath.parents An immutable sequence providing access to the logical ancestors of the path:

2025-01-10 15:47:30
os.path.isfile()
  • References/Python/Python/File & Directory Access

os.path.isfile(path) Return True if path is an existing regular file. This follows symbolic links, so

2025-01-10 15:47:30
fnmatch.filter()
  • References/Python/Python/File & Directory Access

fnmatch.filter(names, pattern) Return the subset of the list of names that match pattern. It is the same as

2025-01-10 15:47:30
os.path.join()
  • References/Python/Python/File & Directory Access

os.path.join(path, *paths) Join one or more path components intelligently. The return value is the concatenation of path

2025-01-10 15:47:30
shutil.Error
  • References/Python/Python/File & Directory Access

exception shutil.Error This exception collects exceptions that are raised during a multi-file operation. For copytree()

2025-01-10 15:47:30
pathlib.PurePath.parent
  • References/Python/Python/File & Directory Access

PurePath.parent The logical parent of the path: >>>

2025-01-10 15:47:30
fileinput.input()
  • References/Python/Python/File & Directory Access

fileinput.input(files=None, inplace=False, backup='', bufsize=0, mode='r', openhook=None) Create an instance of the FileInput

2025-01-10 15:47:30
os.path.sameopenfile()
  • References/Python/Python/File & Directory Access

os.path.sameopenfile(fp1, fp2) Return True if the file descriptors fp1 and fp2 refer to the same

2025-01-10 15:47:30