Skip to content

Commit 2b706ad

Browse files
authored
Merge pull request #140 from epage/ft
fix(path): Consistently respect symlinks
2 parents 8204e44 + 664f74c commit 2b706ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/path/ft.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl FileType {
3232
if file_type.is_dir() {
3333
return Ok(FileType::Dir);
3434
}
35-
if path.is_file() {
35+
if file_type.is_file() {
3636
return Ok(FileType::File);
3737
}
3838
Ok(FileType::Symlink)

0 commit comments

Comments
 (0)