fix logging: only walk remote dir if it exist (#23663)
This commit is contained in:
parent
64e2d9dc47
commit
8c4f010b8d
|
@ -1166,9 +1166,10 @@ where
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut ret = walk_dir(snapshot_archives_dir);
|
let mut ret = walk_dir(snapshot_archives_dir);
|
||||||
ret.append(&mut walk_dir(
|
let remote_dir = build_snapshot_archives_remote_dir(snapshot_archives_dir);
|
||||||
build_snapshot_archives_remote_dir(snapshot_archives_dir).as_ref(),
|
if remote_dir.exists() {
|
||||||
));
|
ret.append(&mut walk_dir(remote_dir.as_ref()));
|
||||||
|
}
|
||||||
ret
|
ret
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue