Skip to content

Commit

Permalink
skip parent tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
kenchou committed Dec 6, 2023
1 parent 6a0cbb9 commit bda0bd9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ enum Operation {
RENAME,
}

#[allow(dead_code)]
#[derive(Debug)]
struct AppOptions {
enable_deletion: bool,
Expand All @@ -48,7 +47,6 @@ struct AppOptions {
target_path: PathBuf,
}

#[allow(dead_code)]
impl AppOptions {
fn is_debug_mode(&self) -> bool {
return self.verbose >= 3;
Expand Down Expand Up @@ -406,7 +404,7 @@ fn main() -> std::io::Result<()> {
.then(a.file_name().cmp(&b.file_name()))
})
.into_iter()
.filter_entry(|e| is_not_hidden(e))
.filter_entry(|e| !app_options.skip_parent_tmp || is_not_hidden(e))
.filter_map(|e| e.ok())
{
let filepath = entry.path();
Expand Down

0 comments on commit bda0bd9

Please sign in to comment.