MCPcopy Index your code
hub / github.com/python/cpython / lstat

Method lstat

Lib/pathlib/__init__.py:854–859  ·  view source on GitHub ↗

Like stat(), except if the path points to a symlink, the symlink's status information is returned, rather than its target's.

(self)

Source from the content-addressed store, hash-verified

852 return os.stat(self, follow_symlinks=follow_symlinks)
853
854 def lstat(self):
855 """
856 Like stat(), except if the path points to a symlink, the symlink's
857 status information is returned, rather than its target's.
858 """
859 return os.lstat(self)
860
861 def exists(self, *, follow_symlinks=True):
862 """

Callers 15

addpackageFunction · 0.80
_rmtree_unsafeFunction · 0.80
_rmtree_safe_fd_stepFunction · 0.80
lexistsFunction · 0.80
islinkFunction · 0.80
gettarinfoMethod · 0.80
extractallMethod · 0.80
_existsFunction · 0.80
_lexistsFunction · 0.80
ismountFunction · 0.80
_statMethod · 0.80
get_modeMethod · 0.80

Calls

no outgoing calls

Tested by 15

get_modeMethod · 0.64
test_copy_symlinksMethod · 0.64
test_copy2_symlinksMethod · 0.64
test_symlink_toMethod · 0.64
test_lstatMethod · 0.64
test_lstat_nosymlinkMethod · 0.64
check_statMethod · 0.64
test_appexeclinkMethod · 0.64