From 664f74c0c96d63f6a56e431dee3dbad9889a0b56 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 24 Mar 2023 10:35:24 -0500 Subject: [PATCH] fix(path): Consistently respect symlinks Fixes #139 --- src/path/ft.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path/ft.rs b/src/path/ft.rs index e4f2e57..aceed55 100644 --- a/src/path/ft.rs +++ b/src/path/ft.rs @@ -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)