mirror of
https://github.com/creating2morrow/neveko.git
synced 2024-12-22 11:39:22 +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");
|
||||
}
|
||||
|
||||
/// 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);
|
||||
|
|
Loading…
Reference in a new issue