Merge pull request #87 from Graian/symlink_issue
Modify to handle symplink as well as file
This commit is contained in:
commit
3255b910b4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user