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 Jörg Stucke, brett.cannon, eryksun, matrixise, pitrou
Date 2019-02-21.04:01:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550721664.47.0.431853728645.issue36035@roundup.psfhosted.org>
In-reply-to
Content
In Windows, the error for a path reparse (e.g. symlink or junction) that can't be resolved is ERROR_CANT_RESOLVE_FILENAME. Another common error is ERROR_INVALID_REPARSE_DATA. This can occur if the reparse data is malformed or if the target device is invalid for the reparse type. For example, a junction is restricted to [bind-]mounting local volumes, so it's invalid if it targets a remote device.

Windows errors to ignore should be added to _IGNORED_WINERRORS in Lib/pathlib.py. For example:

    _IGNORED_WINERRORS = (
        # ...
        1921, # ERROR_CANT_RESOLVE_FILENAME - similar to POSIX ELOOP
        4392, # ERROR_INVALID_REPARSE_DATA  - also for disallowed device targets
    )
History
Date User Action Args
2019-02-21 04:01:04eryksunsetrecipients: + eryksun, brett.cannon, pitrou, matrixise, Jörg Stucke
2019-02-21 04:01:04eryksunsetmessageid: <1550721664.47.0.431853728645.issue36035@roundup.psfhosted.org>
2019-02-21 04:01:04eryksunlinkissue36035 messages
2019-02-21 04:01:04eryksuncreate