mirror of
https://github.com/creating2morrow/neveko.git
synced 2025-01-08 20:09:47 +00:00
destroy temp files
This commit is contained in:
parent
ce96131687
commit
0a7ec31d1d
1 changed files with 3 additions and 3 deletions
|
@ -464,11 +464,11 @@ fn clear_fts() {
|
||||||
db::Interface::delete(&s.env, &s.handle, "fts");
|
db::Interface::delete(&s.env, &s.handle, "fts");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Move temp files to /tmp
|
/// Destroy temp files
|
||||||
pub fn stage_cleanup(f: String) {
|
pub fn stage_cleanup(f: String) {
|
||||||
info!("staging {} for cleanup", &f);
|
info!("staging {} for cleanup", &f);
|
||||||
let output = std::process::Command::new("mv")
|
let output = std::process::Command::new("bash")
|
||||||
.args([&f, "/tmp"])
|
.args(["-c", &format!("rm {}", &f)])
|
||||||
.spawn()
|
.spawn()
|
||||||
.expect("cleanup staging failed");
|
.expect("cleanup staging failed");
|
||||||
debug!("{:?}", output.stdout);
|
debug!("{:?}", output.stdout);
|
||||||
|
|
Loading…
Reference in a new issue