afero
afero copied to clipboard
A FileSystem Abstraction System for Go
I have used `afero.MemMapFs` for filesystem mock test in my projects. But I got some unexpected test results. I want to list all files in target directory that I have...
Adds the ability to change ownership of symlinks. read the issue at: #342 The use case is described in the issue as well. Extends the `Symlinker` interface, requires more methods...
Changing the owner of symlinks seems pretty useful to me. I'd suggest the following method signature, same as LstatIfPossible. ```Go type LinkOwner interface { LchownIfPossible(path string, uid, gid int) (bool,...
I found the List method quite useless before. I was also unable to properly test my code without this method - I would have to iterate through entire filesystem to...
I have a very large directory and slows to a halt when performing an ls. I wanted to know what's the fastest and most cost efficient way to count the...
Hi @spf13, thank you for creating this great library, it already made my code a lot cleaner and easier to test! I noticed that the os.UserConfigDir function from the native...
`os.File` offers a `Chmod()` method. This is often safer and more direct to use than `os.Chmod()` because it operates on an open file descriptor rather than having to lookup the...
Closes #355
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