Skip to content

Commit

Permalink
Fix: remove directories that became files in 'optimize'
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementNerma committed Sep 18, 2022
1 parent ede9be3 commit def3f9d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## v0.3.4 (2022-09-19)

* **Fix:** Remove entries from the database with `optimize` when a directory became a file

## v0.3.3 (2022-05-10)

* **Fix:** Score ranking was reversed in `query` and `list`
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "jumpy"
version = "0.3.3"
version = "0.3.4"
edition = "2021"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ impl Index {
let mut to_remove = vec![];

for path in self.scored_entries.keys() {
if !Path::new(path).exists() {
if !Path::new(path).is_dir() {
to_remove.push(path.to_string());
}
}
Expand Down

0 comments on commit def3f9d

Please sign in to comment.