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 eryksun
Recipients eryksun, jschwar313, paul.moore, serhiy.storchaka, steve.dower, tim.golden, zach.ware
Date 2021-12-15.18:30:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639593010.01.0.0671270527587.issue46084@roundup.psfhosted.org>
In-reply-to
Content
> but errors in DirEntry.is_dir() and DirEntry.is_symlink() 
> are always ignored

In Windows, is_symlink() won't fail due to a long path, since that information comes from the directory listing, but is_dir() might fail for a long path if it's a symlink to a directory. Windows requires that a symlink to a directory is also a directory (i.e. the symlink reparse point is set on an empty directory), but it's not enough to check that it's a directory symlink. is_dir() requires checking that the target exists, which may fail if the path of the link is too long to open and resolve the link target.
History
Date User Action Args
2021-12-15 18:30:10eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, serhiy.storchaka, steve.dower, jschwar313
2021-12-15 18:30:10eryksunsetmessageid: <1639593010.01.0.0671270527587.issue46084@roundup.psfhosted.org>
2021-12-15 18:30:10eryksunlinkissue46084 messages
2021-12-15 18:30:09eryksuncreate