destroy temp files

This commit is contained in:
creating2morrow 2023-05-18 20:13:35 -04:00
parent ce96131687
commit 0a7ec31d1d

View file

@ -464,11 +464,11 @@ fn clear_fts() {
db::Interface::delete(&s.env, &s.handle, "fts");
}
/// Move temp files to /tmp
/// Destroy temp files
pub fn stage_cleanup(f: String) {
info!("staging {} for cleanup", &f);
let output = std::process::Command::new("mv")
.args([&f, "/tmp"])
let output = std::process::Command::new("bash")
.args(["-c", &format!("rm {}", &f)])
.spawn()
.expect("cleanup staging failed");
debug!("{:?}", output.stdout);