linecache.getline()
  • References/Python/Python/File & Directory Access

linecache.getline(filename, lineno, module_globals=None) Get line lineno from file named filename. This function

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

os.path.realpath(path) Return the canonical path of the specified filename, eliminating any symbolic links encountered in the

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

report() Print (to sys

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

Path.resolve() Make the path absolute, resolving any symlinks. A new path object is returned:

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

os.path.getsize(path) Return the size, in bytes, of path. Raise

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

stat.S_ISLNK(mode) Return non-zero if the mode is from a symbolic link.

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

class pathlib.Path(*pathsegments) A subclass of PurePath, this class represents concrete paths of the system’s

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

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

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

exception shutil.SameFileError This exception is raised if source and destination in copyfile() are the same file

2025-01-10 15:47:30