This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Nicolas SURRIBAS
Recipients Nicolas SURRIBAS
Date 2022-01-06.15:57:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1641484629.51.0.786983254218.issue46284@roundup.psfhosted.org>
In-reply-to
Content
Hello,

I bumped into this strange behavior several times when using os.scandir on mounted NFS shares. I'm using Python 3.9.1

>>> path = b'/mnt/nfs_share/sdb1/System Volume Information/'
>>> l = list(os.scandir(path))
>>> print(l[2].name)
b'WPSettings.dat'
>>> print(l[2].path)
b'/mnt/nfs_share/sdb1/System Volume Information/WPSettings.dat'
>>> print(l[2].is_file())
False
>>> print(l[2].is_dir())
True
>>> print(os.path.isfile(l[2].path))
True
>>> print(os.path.isdir(l[2].path))
False
History
Date User Action Args
2022-01-06 15:57:10Nicolas SURRIBASsetrecipients: + Nicolas SURRIBAS
2022-01-06 15:57:09Nicolas SURRIBASsetmessageid: <1641484629.51.0.786983254218.issue46284@roundup.psfhosted.org>
2022-01-06 15:57:09Nicolas SURRIBASlinkissue46284 messages
2022-01-06 15:57:09Nicolas SURRIBAScreate