diff --git a/lib/compiler/fmt.zig b/lib/compiler/fmt.zig index 2fc04b7935..e549a05bdd 100644 --- a/lib/compiler/fmt.zig +++ b/lib/compiler/fmt.zig @@ -236,7 +236,7 @@ fn fmtPathDir( while (try dir_it.next()) |entry| { const is_dir = entry.kind == .directory; - if (is_dir and (mem.eql(u8, entry.name, "zig-cache") or mem.eql(u8, entry.name, "zig-out"))) continue; + if (mem.startsWith(u8, entry.name, ".")) continue; if (is_dir or entry.kind == .file and (mem.endsWith(u8, entry.name, ".zig") or mem.endsWith(u8, entry.name, ".zon"))) { const full_path = try fs.path.join(fmt.gpa, &[_][]const u8{ file_path, entry.name });