Skip to content

Commit cd1a973

Browse files
Dafna Hirschfeldwillmcgugan
authored andcommitted
osfs.py: getinfo: replace _stat with _lstat (#214)
replace: _stat = os.lstat(fsencode(sys_path)) with: _lstat = os.lstat(fsencode(sys_path))
1 parent dd554b1 commit cd1a973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/osfs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def getinfo(self, path, namespaces=None):
258258
with convert_os_errors("getinfo", path):
259259
_stat = os.stat(fsencode(sys_path))
260260
if "lstat" in namespaces:
261-
_stat = os.lstat(fsencode(sys_path))
261+
_lstat = os.lstat(fsencode(sys_path))
262262

263263
info = {
264264
"basic": {"name": basename(_path), "is_dir": stat.S_ISDIR(_stat.st_mode)}

0 commit comments

Comments
 (0)