Closed samschott closed 3 months ago
If follow_symlinks=False is not supported for a file system call on the platform, either fall back to follow_symlinks=True, or skip the call if ok. In particular:
follow_symlinks=False
follow_symlinks=True
stat
os.lstat
os.stat
chmod
open
Fixes #890.
If
follow_symlinks=False
is not supported for a file system call on the platform, either fall back tofollow_symlinks=True
, or skip the call if ok. In particular:stat
: Use Python'sos.lstat
, which always falls back toos.stat
. See https://docs.python.org/3/library/os.html#os.lstat.chmod
: Don't call at all iffollow_symlinks=False
is not supported.open
: Don't pass O_NOFOLLOW is not available.Fixes #890.