]> git.lizzy.rs Git - rust.git/commit
rollup merge of #20231: fhahn/issue-20226-eexist
authorAlex Crichton <alex@alexcrichton.com>
Tue, 30 Dec 2014 00:36:12 +0000 (16:36 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 30 Dec 2014 00:36:12 +0000 (16:36 -0800)
commit3801c2678fc1cffd310a36be86ac0a9b9d3a502d
tree9817b35aea7c21c047c395f35c0c9e8f791d6da9
parentbcd3b1685ab8f0ed1ef2e78a9bc89afbdc5913eb
parenteb4b20288e6e8e704f5248c56601149dbf856599
rollup merge of #20231: fhahn/issue-20226-eexist

I've created a patch for #20226, which maps `EEXIST` to the `PathAlreadyExists` error on Unix. To test this, I use `mkdir`, which raises `EEXIST` if the directory already exists.

On Windows, I map `ERROR_ALREADY_EXISTS` to `PathAlreadyExist`, but I am note sure if `mkdir` on Windows raises `ERROR_ALREADY_EXISTS` and do not have a Windows installation handy for testing.

And I noticed another thing. No error seems to map to `IoErrorKind::PathDoesntExist` and I am wondering what the difference to `FileNotFound` is?
src/libstd/io/fs.rs