Merge pull request #87 from Graian/symlink_issue

Modify to handle symplink as well as file
This commit is contained in:
dalance 2023-11-09 10:47:56 +09:00 committed by GitHub
commit 3255b910b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ fn main() {
for entry in WalkDir::new("src") {
let entry = entry.unwrap();
if entry.file_type().is_file() {
if entry.path().is_file() {
let f = File::open(entry.path()).unwrap();
let f = BufReader::new(f);
let mut hit_node = false;