| ... | @@ -2622,6 +2622,9 @@ fn fmtPathDir( | ... | @@ -2622,6 +2622,9 @@ fn fmtPathDir( |
| 2622 | var dir_it = dir.iterate(); | 2622 | var dir_it = dir.iterate(); |
| 2623 | while (try dir_it.next()) |entry| { | 2623 | while (try dir_it.next()) |entry| { |
| 2624 | const is_dir = entry.kind == .Directory; | 2624 | const is_dir = entry.kind == .Directory; |
| | 2625 | |
| | 2626 | if (is_dir and std.mem.eql(u8, entry.name, "zig-cache")) continue; |
| | 2627 | |
| 2625 | if (is_dir or mem.endsWith(u8, entry.name, ".zig")) { | 2628 | if (is_dir or mem.endsWith(u8, entry.name, ".zig")) { |
| 2626 | const full_path = try fs.path.join(fmt.gpa, &[_][]const u8{ file_path, entry.name }); | 2629 | const full_path = try fs.path.join(fmt.gpa, &[_][]const u8{ file_path, entry.name }); |
| 2627 | defer fmt.gpa.free(full_path); | 2630 | defer fmt.gpa.free(full_path); |