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_resultstat()paths relative to directory descriptorsstat()path-like objectstat()