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

It seems that `BasePathFile.Name()` method returns wrongly trimmed path: `filepath.Clean` will have the last `/` removed, leaving the `Name()` containing a `/` prefix. Next time the BasePathFile trimming a prefix,...

CVE-2024-24786, Score: 7.5 In the package google.golang.org/protobuf versions prior to 1.33.0, the "protojson.Unmarshal" function can enter an infinite loop when unmarshaling certain forms of invalid JSON. This condition can occur...

When you have a test doing something like this: ```go configFile := filepath.Join(t.TempDir(), "config") _ = os.Mkdir(configFile, 0755) ``` and the file under tests does a `afero.ReadFile(fs, configPath)`, the call...

Similarly to #378 the WriteAt and Sync methods are also missing and a TODO despite being implemented by sftp.File already. Also may i suggest just nesting sftp.File into sftpfs.File to...

Are there any plans to support [`os.Link`](https://pkg.go.dev/os#Link) in upcoming releases?

We routinely use afero in our code to simplify writing unit tests against a filesystem. We recently had a use case where we needed to call `filepath.Abs()` to convert a...