vfs v5.0.0 Release Notes
Release Date: 2019-06-18 // almost 5 years ago-
๐ Changed
- Defined stricter definitions in interfaces, largely related to input requiements being more URI compliant.
- FileSystem's NewFile and NewLocation required absolute paths. Locations NewFile and NewLocation require relative paths.
- โ Added/Updated several new utils functions for URI validation across implementations.
- ๐ Ensure native methods are being used for atomic functions like copy or move/rename where possible
- ๐ Document expected behavior with empty readers in all copy and move function as well as io.Copy
- ListByPrefix now allows relative paths. ### โ Added
- โ Integration test suite for backened developers that ensures expected interface behaviors and tests interactions between implementations.
- ๐ Examples of io.Copy usage in docs. ### ๐ Fixed
- ๐ Fixed #10
- ๐ Fixed vfssimple bug that would return os file system if the uri had the word 'file' anywhere in it even if was s3, like s3://bucket/path/to/file.txt
- ๐ Fixed bug where MoveToLocation was returning the old file with updated location rather than a brand new file with new location. Since File may represent a non-existent file, the original file should still be valid.