Message408632
> 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. |
|
Date |
User |
Action |
Args |
2021-12-15 18:30:10 | eryksun | set | recipients:
+ eryksun, paul.moore, tim.golden, zach.ware, serhiy.storchaka, steve.dower, jschwar313 |
2021-12-15 18:30:10 | eryksun | set | messageid: <1639593010.01.0.0671270527587.issue46084@roundup.psfhosted.org> |
2021-12-15 18:30:10 | eryksun | link | issue46084 messages |
2021-12-15 18:30:09 | eryksun | create | |
|