Suppress missing file errors if -f is passed.
This commit is contained in:
parent
53041af73c
commit
9bc591d09d
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ pub fn put(options: PutOptions) -> Result<()> {
|
||||||
for path in options.paths.iter() {
|
for path in options.paths.iter() {
|
||||||
let abs_path = utils::into_absolute(&path)?;
|
let abs_path = utils::into_absolute(&path)?;
|
||||||
|
|
||||||
if !abs_path.exists() {
|
if !options.force && !abs_path.exists() {
|
||||||
errors.push(Error::FileDoesntExist(path.clone()));
|
errors.push(Error::FileDoesntExist(path.clone()));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue