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

This behavior does not match the behavior of most operating systems, and I believe is likely a bug. Treating a directory like a regular files in situations where is does...

bug

Symlinks on BasePathFs behave not match my expation. SymlinkIfPossible will resolve the RealPath of underlayer filesystem before make a symlink. For example, craeting a link like "/foo/bar" -> /foo/file" will...

If you try ``` httpFs := afero.NewHttpFs() fileserver := http.FileServer(httpFs.Dir("/"))) http.Handle("/", fileserver) ``` you'll find that your fileserver successfully lists the directory, but gives 404 on any file. However, if...

bug

Hi, there. I believe that we have a bug with `afero.NewRegexpFs` and `fs.OpenFile`. `fs.Create` works as expected. Code: ```golang package main import ( "fmt" "os" "path/filepath" "regexp" "github.com/pkg/errors" "github.com/spf13/afero" )...

I ran into this one while debugging a few tests. I was under the assumption that the method `GetTempDir` would return a valid temporary diretory for use in any FS,...

Currently when you call Read with byte slice longer then number of bytes in fileData.data slice the passed buffer is filled properly but no io.EOF error is returned. This is...

In path.go, there is a blank line before `func (a Afero) Walk(root string, walkFn filepath.WalkFunc) error` so the documentation above isn't shown in godoc. (v1.4.1)

@thanm, @cheerymui : project's [readme ](https://github.com/spf13/afero/blob/master/README.md) could be updated - this project was compiled successfully, using [gollvm](https://go.googlesource.com/gollvm/). I was able to run all their tests. Probably makes sense to mark...

`os.File.Readdir` under the hood uses buffering of directory contents, which gives it ability to traverse directory and remove files at the same time. Currently, `MemMapFs.Readdir` retrieves files from `f.fileData.memDir.Files()` on...