Releases: lordofscripts/vfs
v1.3.0
Another exciting update to the Go Virtual File System package! It also includes the gopher mascot munching VFS cookies. Well, sort of, I better spend time coding than making images.
New Features
- GH-3 finally normalizes the
vfs.Filesystem
interface by bringing in thefs.RemoveAll()
andfs.MkdirAll()
methods. Previously a globalvfs.*All()
call was necessary, but now it is accessible from the selected virtual file system instance. This certainly makes integration with other apps easier to do. - The BucketFS now has detailed documentation on-site.
Change Log
Full Changelog: v1.2.1...v1.3.0
v1.2.0
Welcome to the Extended Go Virtual File System!
New Features
Implemented #GH-1 the BitBucketFS bucketfs
which is much more suitable for dry runs that the original dummyfs
. See the
BitBucketFS example at GoDocs
- The basic BitBucketFS in Silent Mode is created with
bucketfs.Create()
simply outputs the operation name and the main parameter. This is suitable for dry runs freeing the developer from worries about making changes in the real filesystem. - The hybrid BitBucketFS is created with
bucketfs.CreateWithError(error)
and is a more functional version of the Silent Mode. It uses simplified file nodes with some support for file size, file mode and even symbolic links. It is useful if you want more in-depth functionality in your application's dry-run without actually commiting on a MemoryFSmemfs
. - Includes extensive unit tests for
bucketfs
The full BitBucketFS documentation is found on GoDocs.
Known Bugs
None.
Change Log
Full Changelog: v1.1.0...v1.2.0
v1.1.0
This is Lord of Scripts™ version on Benedikt Lang's GO Virtual File System (9 years ago) later enhanced by 3JoB (1 year ago) which are also included in my base version (fork of 3JoB).
This v1.1.0
release actually brings no enhancements of functionality and no bug fixes as there are no known bugs and the coverage percent is high.
- Bumped version to
v1.1.0
for semantic reasons because 3JoB's enhanced version should have been taggedv1.1.0
to point out it had functionality enhancements (without breaking changes) to Benedikt'sv1.0.0
(the original library author). - Updated module names to this module's name, i.e.
github.com/lordofscripts/vfs
.
Now, let the games begin!
Full Changelog: v1.0.0...v1.1.0
v1.0.0
This is Lord of Scripts™ Fork of the GO Virtual File System with the following modifications from its predecessor:
- The HEAD branch has been updated to
main
rather than the deprecatedmaster
branch. - I added a GO Build Workflow
- NOTE: The package names have not been changed. This ad-hoc release is merely to keep history!
Now, as mentioned this is a fork because I need to enhance this module to use in my application and this is just the
beginning. This fork is based on the GO VFS by 3JoB/vfs v1.0.0 which in turn has the
following improvements over the original author's code, 3JoB did:
- Renamed the package names to
github.com/3JoB/vfs
- Uses GO v1.20
- He added support for
Symlink()
in theFilesystem
interface as well as tests. - He added support for filesystem
Walk()
as well as tests.
Actually, 3JoB should have tagged his fork as v1.1.0
because it added functionality over Benedikt's v1.0.0
.
Last but not least, credits to the generous original creator Benedikt Lang who wrote the first version of
blang/vfs v1.0.0 nine years ago (2015). Which featured:
- Support for
OS
(underlying OS),MemFS
(memory-based virtual file system),DummyFS
(every call returns a user-provided error), andReadOnlyFS
functionality.
All of that in a pure GO module which does not bring along any other package dependency.
Full Changelog: https://github.com/lordofscripts/vfs/commits/v1.0.0