spf13 / afero

A FileSystem Abstraction System for Go
Apache License 2.0
5.93k stars 508 forks source link

ReadOnlyFs.MkdirAll should return nil if directory already exists #355

Open malt3 opened 2 years ago

malt3 commented 2 years ago

From the go docs of os.MkdirAll:

[...] If path is already a directory, MkdirAll does nothing and returns nil.

Related issue: https://github.com/spf13/afero/issues/191