diff --git a/src/ops/put.rs b/src/ops/put.rs index 199414a..555a4bf 100644 --- a/src/ops/put.rs +++ b/src/ops/put.rs @@ -70,7 +70,7 @@ pub fn put(options: PutOptions) -> Result<()> { for path in options.paths.iter() { let abs_path = utils::into_absolute(&path)?; - if !abs_path.exists() { + if !options.force && !abs_path.exists() { errors.push(Error::FileDoesntExist(path.clone())); continue; }