Skip to content

Commit

Permalink
fix(path): Consistently respect symlinks
Browse files Browse the repository at this point in the history
Fixes #139
  • Loading branch information
epage committed Mar 24, 2023
1 parent 8204e44 commit 664f74c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/path/ft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl FileType {
if file_type.is_dir() {
return Ok(FileType::Dir);
}
if path.is_file() {
if file_type.is_file() {
return Ok(FileType::File);
}
Ok(FileType::Symlink)
Expand Down

0 comments on commit 664f74c

Please sign in to comment.