Skip to content

Commit 84c1bd7

Browse files
committed
db fix
1 parent 6762635 commit 84c1bd7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/in_directory.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use std::fs;
21
use std::path::Path;
32
use crate::Args;
43
use crate::punch;

src/main.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ fn main() {
252252
push to db after for files resulting in a deletion (trash,move,delete,deletein),
253253
push before*/
254254
InputType::DeleteIn => {
255+
db::push(&&args.din.clone().unwrap(), "DeleteIn");
255256
in_directory::delete_files_dir(&args);
256-
db::push(&&args.din.clone().unwrap(), "DeleteIn")
257257
},
258258

259259
InputType::CreateIn => {
@@ -271,9 +271,10 @@ InputType::DeleteIn => {
271271
db::push(&&args.target, "Create")
272272
},
273273

274-
InputType::Trash => {
274+
InputType::Trash => {
275+
db::push(&&args.trash.clone().unwrap(), "Trash");
275276
trash_files(&args);
276-
db::push(&&args.trash.clone().unwrap(), "Trash");
277+
277278
},
278279

279280
InputType::Undo => { db::undo()},

0 commit comments

Comments
 (0)