Skip to content

Commit

Permalink
Merge pull request #2 from edav-mx/SaveObjectType
Browse files Browse the repository at this point in the history
Corrected filetype check
  • Loading branch information
edav-mx authored Mar 22, 2024
2 parents 58ef0f1 + eeed254 commit 759fc90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notify/src/poll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ mod data {
if _new.path_type.is_dir() {
Some(EventKind::Create(CreateKind::Folder))
}
else if _new.path_type.is_dir() {
else if _new.path_type.is_file() {
Some(EventKind::Create(CreateKind::File))
}
else {
Expand All @@ -413,7 +413,7 @@ mod data {
if _old.path_type.is_dir() {
Some(EventKind::Remove(RemoveKind::Folder))
}
else if _old.path_type.is_dir() {
else if _old.path_type.is_file() {
Some(EventKind::Remove(RemoveKind::File))
}
else {
Expand Down

0 comments on commit 759fc90

Please sign in to comment.