Skip to content

Commit

Permalink
Merge pull request #140 from epage/ft
Browse files Browse the repository at this point in the history
fix(path): Consistently respect symlinks
  • Loading branch information
epage committed Mar 24, 2023
2 parents 8204e44 + 664f74c commit 2b706ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/path/ft.rs
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 2b706ad

Please sign in to comment.