Commit Graph

2 Commits

Author SHA1 Message Date
Illya Chekrygin e016ffbd1f
Add implementation for TempFile with wild card prefix
Signed-off-by: Illya Chekrygin <illya.chekrygin@gmail.com>
2020-01-06 22:31:16 -08:00
Bjørn Erik Pedersen 5e9f8ecaa4 Return os.ErrExist from CopyOnWriteFs.Mkdir/MkdirAll
Before this commit, `CopyOnWriteFs` would return `syscall.EEXIST` in `Mkdir` and `MkdirAll` when a directory already exists.

The main problem with this is that `os.IsExist` returns `false` for that error on Windows.

These methods now return `os.ErrExist`, which is in line with how the other file systems behave.

Fixes #189
2018-12-17 09:55:40 +01:00