Files
docker-cli/components/engine/pkg/system
Kir Kolyshkin 03d850d672 idtools.MkdirAs*: error out if dir exists as file
Standard golang's `os.MkdirAll()` function returns "not a directory" error
in case a directory to be created already exists but is not a directory
(e.g. a file). Our own `idtools.MkdirAs*()` functions do not replicate
the behavior.

This is a bug since all `Mkdir()`-like functions are expected to ensure
the required directory exists and is indeed a directory, and return an
error otherwise.

As the code is using our in-house `system.Stat()` call returning a type
which is incompatible with that of golang's `os.Stat()`, I had to amend
the `system` package with `IsDir()`.

A test case is also provided.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Upstream-commit: 2aa13f86f0c9cf3ed58a648a7b1506d4b06f3589
Component: engine
2017-11-27 13:25:44 -08:00
..
2017-09-14 13:51:16 -07:00
2017-06-20 19:49:24 -07:00
2017-06-20 19:49:24 -07:00
2016-03-11 23:22:16 +08:00
2014-10-22 14:05:45 -07:00
2017-08-24 15:08:31 -04:00
2017-09-08 18:23:21 -04:00
2017-07-31 13:16:46 -07:00