afero icon indicating copy to clipboard operation
afero copied to clipboard

A FileSystem Abstraction System for Go

Results 146 afero issues
Sort by recently updated
recently updated
newest added

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...

breaking-change

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...

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