| ... | @@ -4317,7 +4317,7 @@ fn fmtPathDir( | ... | @@ -4317,7 +4317,7 @@ fn fmtPathDir( |
| 4317 | | 4317 | |
| 4318 | if (is_dir and (mem.eql(u8, entry.name, "zig-cache") or mem.eql(u8, entry.name, "zig-out"))) continue; | 4318 | if (is_dir and (mem.eql(u8, entry.name, "zig-cache") or mem.eql(u8, entry.name, "zig-out"))) continue; |
| 4319 | | 4319 | |
| 4320 | if (is_dir or mem.endsWith(u8, entry.name, ".zig")) { | 4320 | if (is_dir or entry.kind == .File and mem.endsWith(u8, entry.name, ".zig")) { |
| 4321 | const full_path = try fs.path.join(fmt.gpa, &[_][]const u8{ file_path, entry.name }); | 4321 | const full_path = try fs.path.join(fmt.gpa, &[_][]const u8{ file_path, entry.name }); |
| 4322 | defer fmt.gpa.free(full_path); | 4322 | defer fmt.gpa.free(full_path); |
| 4323 | | 4323 | |