fileinput.close()
  • References/Python/Python/File & Directory Access

fileinput.close() Close the sequence.

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

os.path.splitdrive(path) Split the pathname path into a pair (drive, tail) where drive is either

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

classmethod Path.cwd() Return a new path object representing the current directory (as returned by

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

Path.read_text(encoding=None, errors=None) Return the decoded contents of the pointed-to file as a string:

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

PurePath.relative_to(*other) Compute a version of this path relative to the path represented by other. If it’s impossible

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

os.path.basename(path) Return the base name of pathname path. This is the second element of the pair returned by passing

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

stat.S_ISCHR(mode) Return non-zero if the mode is from a character special device file.

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

shutil.make_archive(base_name, format[, root_dir[, base_dir[, verbose[, dry_run[, owner[, group[, logger]]]]]]]) Create an archive

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

fileinput.nextfile() Close the current file so that the next iteration will read the first line from the next file (if any);

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

os.path.commonprefix(list) Return the longest path prefix (taken character-by-character) that is a prefix of all paths in list

2025-01-10 15:47:30