Fix: Use backend abstraction for checking whether a path exists
This commit is contained in:
parent
851db4abe4
commit
9315a23754
1 changed files with 1 additions and 1 deletions
|
@ -479,7 +479,7 @@ impl Store {
|
|||
// delete the filesystem file.
|
||||
let pb = id.clone().into_pathbuf()?;
|
||||
|
||||
if pb.exists() {
|
||||
if self.backend.exists(&pb)? {
|
||||
// looks like we're deleting a not-loaded file from the store.
|
||||
debug!("Seems like {:?} is on the FS", pb);
|
||||
return self.backend.remove_file(&pb)
|
||||
|
|
Loading…
Reference in a new issue