ExecContext: Map ENOTDIR to FileNotFoundError #133
Loading…
Reference in a new issue
No description provided.
Delete branch "jan/fix/20261003-execcontext-map-enotdir-to-filenotfounderror"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
ExecContext: Map ENOTDIR to FileNotFoundError
_raise_stat_error()maps the message of a failed remote stat to an exception. A stat below a file answersnot a directory, which falls through to the generic EIO: the path is simply absent, and callers see a re-raised error instead of the FileNotFoundError theno such filebranch already gives. Map it to FileNotFoundError, so existence checks see absence.