summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-06-08 01:33:01 +0200
committerMatthias Beyer <mail@beyermatthias.de>2018-07-19 20:58:27 +0200
commit9315a237544e04d33f06caa89a9c6194a10bc6df (patch)
treed1a7c687f3afc3fb7de4cd852da2bceca512dbdd /lib
parent851db4abe4d8d0aebafe35ef41c5594213b1be6b (diff)
Fix: Use backend abstraction for checking whether a path exists
Diffstat (limited to 'lib')
-rw-r--r--lib/core/libimagstore/src/store.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/core/libimagstore/src/store.rs b/lib/core/libimagstore/src/store.rs
index e85b65f4..bc6d4d2e 100644
--- a/lib/core/libimagstore/src/store.rs
+++ b/lib/core/libimagstore/src/store.rs
@@ -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)