-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## [5.2.0] - 2019-07-16 ### Added - In-Memory backend vfs implementation - Included the in-memory backend to the list of registered backends used in backend_integration_test - Checking for existence at the start of various File functions (size, seek, etc) and returning and error if the file does not exist on the OS backend - Tests in backend_integration_test that ensure that operations done on non-existent files throw an error - mem.md in vfs/docs, updated link to it in the README.md ### Fixed - Relative path validation in utils.go now disallows empty names ### Changed - utils_test.go now expects an empty string NOT to validate - updated README to include "Touch()" definition under the File interface rather than the Location interface - updated README to exclude "in-memory-backend" from the list of ideas
- Loading branch information
Showing
15 changed files
with
2,499 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
Package mem built-in mem lib VFS implementation. | ||
Usage | ||
Rely on github.com/c2fo/vfs/backend | ||
import( | ||
"github.com/c2fo/vfs/backend" | ||
"github.com/c2fo/vfs/backend/mem" | ||
) | ||
func UseFs() error { | ||
fs, err := backend.Backend(mem.Scheme) | ||
... | ||
} | ||
Or call directly: | ||
import _mem "github.com/c2fo/vfs/backend/mem" | ||
func DoSomething() { | ||
fs := _mem.NewFileSystem() | ||
... | ||
} | ||
*/ | ||
package mem |
Oops, something went wrong.