afero
afero copied to clipboard
A FileSystem Abstraction System for Go
I have generate a mock with mockgen for testing afero's function but it seems that WriteFile and ReadFile function are not be intergrate in an interface. Is there any solution...
I just discovered afero and tried the in memory filesystem, upon playing with these two lines of code below I noticed that the reported path of the temporary files is...
Having to do: ``` NewBasePathFs(fs, baseDir).(*BasePathFs) ``` Doesn't make much sense. I don't see the problem going the other way around; but as this is a file system with a...
I just thought it would be useful for testing purposes to have a LoggingFS (JournalFS) that wraps other FS and logs all calls, then you can go around later and...
This pr adds support for openstack swift [object storage](https://docs.openstack.org/project-deploy-guide/openstack-ansible/newton/overview-storage-arch.html). To run the tests, you'll need access to an openstack swift store, I've used [the one from ovh](https://www.ovh.ie/public-cloud/storage/object-storage/) since its pretty...
I have a similar use case as https://github.com/spf13/afero/pull/118. I'm using using tar and having problems with tar.FileInfoHeader. I've found that when using MemMapFs.MkdirAll only the leaf directory has a correct...
I'm kind of testing around with my BackupFs implementation that also utilizes the Afero.Fs interface in order to implement a backup on write mechanism. While writing my tests I have...
Close might do some flushing, so failures to Close might cause data loss. We should probably also check all Close() calls of read-only files, but I'm not aware of any...
MemMapFs.Mkdir happily creates the parent path if it is missing. &MemFs().Mkdir("/tmp/abc/def",0777) should fail, as the parent directories do not yet exist.