Skip to main content
← dvs documentation Rust API reference

Crate dvs

Crate dvs 

Source

Re-exports§

pub use backends::Backend;
pub use config::Compression;
pub use paths::AddPathStatus;
pub use paths::DvsPaths;
pub use paths::find_repo_root;
pub use progress::FileProgress;

Modules§

audit
backends
config
globbing
init
paths
progress

Structs§

AddResult
Result of adding a single file.
FileMetadata
The dvs metadata for a given file
FileStatus
GetResult
Result of getting a single file.
Hashes
StatusFilter
Which paths to get status for eg you can pass dir1/ dir2/ and it will expand to dir1/* dir2/* If recursive is true, then it will expand to dir1//* dir2//*

Enums§

AddDetail
GetDetail
HashAlg
Outcome
Outcome of an add or get operation.
Status
StatusDetail

Constants§

VERSION

Functions§

add_files
Adds files matching a glob pattern to DVS.
format_size
Formats a byte count into a human-readable string (e.g. “10.5 MB”). Uses base-1024 divisors to match ls -h / du -h output.
get_files
Gets files matching a glob pattern from DVS storage.
get_status
set_num_threads
Set the number of threads for DVS parallel operations. Pass 0 to clear (revert to env var / automatic detection).