ID EN
OS

lstat

Python 3.11

Perform the equivalent of an lstat() system call on the given path. Similar to stat(), but does not follow symbolic links. Return a stat_result object.

Syntax

PYTHON
os.lstat(path, *, dir_fd=None)

See Also

stat() stat_result stat() paths relative to directory descriptors stat() path-like object stat()