diff --git a/src/ops/put.rs b/src/ops/put.rs index 6d42b7d..0f8b962 100644 --- a/src/ops/put.rs +++ b/src/ops/put.rs @@ -68,6 +68,11 @@ pub fn put(options: PutOptions) -> Result<()> { for path in options.paths.iter() { let abs_path = utils::into_absolute(&path)?; + if !abs_path.exists() { + error!("Skipping non-existent path {:?}", path); + continue; + } + // don't allow deleting '.' or '..' let current_dir = env::current_dir()?; let parent = current_dir.parent();