Skip to main content
← dvs documentation Rust API reference

add_files

Function add_files 

Source
pub fn add_files(
    files: Vec<PathBuf>,
    paths: &DvsPaths,
    backend: &dyn Backend,
    message: Option<String>,
    compression: Compression,
    dry_run: bool,
    on_file_start: Option<&OnFileStart>,
) -> Result<Vec<AddResult>>
Expand description

Adds files matching a glob pattern to DVS.

The pattern is matched against files relative to cwd. Files are stored with paths relative to repo_root.