diff options
Diffstat (limited to 'src/commands/bulk_rename.rs')
-rw-r--r-- | src/commands/bulk_rename.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/commands/bulk_rename.rs b/src/commands/bulk_rename.rs index 6ba7f74..90dd23a 100644 --- a/src/commands/bulk_rename.rs +++ b/src/commands/bulk_rename.rs @@ -64,6 +64,8 @@ pub fn _bulk_rename(context: &mut AppContext) -> JoshutoResult { // check if the file was modified since it was created let last_modified = fs::metadata(&file_path)?.modified()?; if last_modified <= initial_modified { + // remember to remove file + std::fs::remove_file(&file_path)?; return Ok(()); } } |