ENOTDIR translation is funny
Robert Collins
robertc at robertcollins.net
Fri Jan 20 20:09:53 GMT 2006
On Fri, 2006-01-20 at 10:00 -0800, Robey Pointer wrote:
>
> It may be because sftp servers tend to translate ENOTDIR to
> SFTP_NO_SUCH_FILE. (SFTP only has 4 real error codes.) As I guess
> people are sick of hearing me say: We can't really depend on good
> error fidelity from transports, so we shouldn't put too much weight
> on fine-grained error codes. I think HTTP can barely do better than
> "it succeeded" vs "it failed".
Hmm, could be. I was just a little worried about confusion when someone
issues a local 'transport.delete('a_directory')' and recieves
'NoSuchFile' as the error.
Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060121/c66815f9/attachment.pgp
More information about the bazaar
mailing list