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)