Description
afs, short for abstract file storage, is a library that gives you one API for common storage operations across cloud storage, SCP, container storage and the local file system. The README explains that using a shared API simplifies working with these systems, and that the library can simulate storage errors such as authentication failures or EOF, so you can test how your app handles them. Each storage system is handled by a storage manager. The system is picked from the URL scheme, or you can use a relative or absolute path for local files. Operations that use the same base URL share one storage manager, so authentication details can be given once. The README covers CRUD operations, a batch uploader and utilities for downloading, uploading with a writer, copying and moving data, and archiving. You can walk or upload tar and zip archives. Matchers filter the source content, with exclusions and filepath-style patterns. The README asks users to check CHANGELOG.md for breaking changes.…
Highlights
- One API for cloud, SCP, container and local storage
- Storage manager shared per base URL
- Batch uploader and archive walker
- Matchers with exclusions for filtering content
- Testing mode for simulated storage errors
Ratings & Reviews
No ratings yet
Be the first to rate Afs.
People also visit
Afs FAQ
What is afs?
An abstract file storage library that provides one API for cloud, SCP, container and local file storage.
How is the storage system chosen?
From the URL scheme of the path. Relative or absolute paths are used for local files.
Can I simulate storage errors?
Yes. A testing mode can simulate errors such as authentication failures or EOF, to test your error handling.
Can it work with archives?
Yes. It can walk and upload tar or zip archives, and it can archive content.
Where are breaking changes listed?
In CHANGELOG.md in the repository.
What are the best Afs alternatives?
Popular alternatives to Afs include FileFluss, Meteor-Files and go-drive. See all Afs alternatives





