Skip to content

Commit

Permalink
exclude hidden directories
Browse files Browse the repository at this point in the history
  • Loading branch information
MnlPhlp committed Feb 14, 2024
1 parent 885c4d4 commit d247294
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wspick"
version = "1.2.1"
version = "1.2.2"
authors = ["MnlPhlp <[email protected]>"]
edition = "2021"
license = "MIT OR Apache-2.0"
Expand Down
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,11 @@ fn add_options_from_dirs(
if let Ok(path) = path.map(|p| p.path()) {
let path_str = path.to_str();
let name = path.file_name().map(|n| n.to_str());
if path_str.is_none() || name.is_none() || name.unwrap().is_none() {
if path_str.is_none()
|| name.is_none()
|| name.unwrap().is_none()
|| name.unwrap().unwrap().starts_with('.')
{
continue;
}
let key = String::from(name.unwrap().unwrap());
Expand Down

0 comments on commit d247294

Please sign in to comment.