Fix: Use backend abstraction for checking whether a path exists

This commit is contained in:
Matthias Beyer 2018-06-08 01:33:01 +02:00
parent 851db4abe4
commit 9315a23754

View file

@ -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)