shutil.copystat()
  • References/Python/Python/File & Directory Access

shutil.copystat(src, dst, *, follow_symlinks=True) Copy the permission bits, last access time, last modification time, and flags

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

fileinput.filename() Return the name of the file currently being read. Before the first line has been read, returns None

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

stat.S_ISREG(mode) Return non-zero if the mode is from a regular file.

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

Path.is_dir() Return True if the path points to a directory (or a symbolic link pointing to a directory), False

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

shutil.copyfileobj(fsrc, fdst[, length]) Copy the contents of the file-like object fsrc to the file-like object fdst

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
os.path.lexists()
  • References/Python/Python/File & Directory Access

os.path.lexists(path) Return True if path refers to an existing path. Returns True for broken

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

shutil.get_unpack_formats() Return a list of all registered formats for unpacking. Each element of the returned sequence is

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

fnmatch.translate(pattern) Return the shell-style pattern converted to a regular expression.

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

stat.S_ISPORT(mode) Return non-zero if the mode is from an event port.

2025-01-10 15:47:30