diff --git a/libimagstore/src/file_abstraction.rs b/libimagstore/src/file_abstraction.rs index 90204998..dc04d235 100644 --- a/libimagstore/src/file_abstraction.rs +++ b/libimagstore/src/file_abstraction.rs @@ -62,7 +62,8 @@ mod fs { }; } - pub fn remove_file(_: &PathBuf) -> Result<(), SE> { + pub fn remove_file(path: &PathBuf) -> Result<(), SE> { + MAP.lock().unwrap().remove(path); Ok(()) }