PyDocs

Nav

Generic Operating System Services

lstat

os

function
  • lstat(path, *, dir_fd=None)
Perform a stat system call on the given path, without following symbolic links.

Like stat(), but do not follow symbolic links.
Equivalent to stat(path, follow_symlinks=False).
Changed in 3.2, 3.3, 3.6, 3.8
  • 3.2: Added support for Windows 6.0 (Vista) symbolic links.
  • 3.3: Added the dir_fd parameter.
  • 3.6: Accepts a path-like object.
  • 3.8: On Windows, now opens reparse points that represent another path (name surrogates), including symbolic links and directory junctions. Other kinds of reparse points are resolved by the operating system as for stat().
0 Examples
No examples for os/lstat.
See Also
No see-alsos for os/lstat
0 Notes
No notes for lstat