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

Path.rename(target) Rename this file or directory to the given target. On Unix, if target exists and is a

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

glob.glob(pathname, *, recursive=False) Return a possibly-empty list of path names that match pathname, which must

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
stat.S_ISDIR()
  • References/Python/Python/File & Directory Access

stat.S_ISDIR(mode) Return non-zero if the mode is from a directory.

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
pathlib.PurePath.joinpath()
  • References/Python/Python/File & Directory Access

PurePath.joinpath(*other) Calling this method is equivalent to combining the path with each of the other arguments

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

fileinput.hook_encoded(encoding) Returns a hook which opens each file with

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
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
pathlib.WindowsPath
  • References/Python/Python/File & Directory Access

class pathlib.WindowsPath(*pathsegments) A subclass of Path and PureWindowsPath, this class represents

2025-01-10 15:47:30