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

The go.mod file declares go 1.16 right now. [Module graph pruning](https://tip.golang.org/ref/mod#graph-pruning) was added in Go 1.17, meaning that other modules can import your module and only pick up the transitive...

Creating a `MemMapFs` in a table driven test running in parallel can cause an internal compiler error. Minimal reproduction test code: ```go func TestMkdirAll_fails(t *testing.T) { var tests = []struct...

I'd like to copy one afero filesystem to another one. Obviously allowing different backends. Is this possible with a built-in method, or do I have to write something custom? If...

Without it each files interaction on GCS results in an unnecessary GetBucket request.

First, thanks for the great product! Second, a bug report: In the occasion of "overwriting file" with GCS FS using `afero.WriteFile` (or `fs.OpenFile`), the way in which flags are processed...

In unionFile.go, at line no 270, copyFile function accepts a parameter named "base" https://github.com/spf13/afero/blob/5c4385aa20510dba5ca4db12c02b0c9211d82892/unionFile.go#L270C15-L270C19, which is not used. Could be a good practice to remove it from the function definition....

As a special case, it is OK to allow absolute paths access when the `BasePathFs.path` is empty. Sometimes we need to provide access to full FS through BasePathFs type for...

About `v.1.11.0`. Static analysis shows two critical: 1. > After having been assigned to a nil value at memmap.go:240, pointer '&parent.Mutex' is passed as implicit 'this' parameter in call to...

This new filesystem implements a relative filesystem modifier which can be useful for converting between absolute filesystems rooted at / and relative ones. This is particularly useful when interfacing with...