diff --git a/src/Package.zig b/src/Package.zig index c36830d5996e81552926630824dbc1c7fd0a52a6..ab06ca9852087cf08f2b533db4755f48d6ac92d2 100644 --- a/src/Package.zig +++ b/src/Package.zig @@ -124,7 +124,7 @@ pub const Path = struct { }; if (self.root_dir.path) |p| { try stringEscape(p, f, options, writer); - if (self.sub_path.len > 0) try writer.writeAll(fs.path.sep_str); + if (self.sub_path.len > 0) try stringEscape(fs.path.sep_str, f, options, writer); } if (self.sub_path.len > 0) { try stringEscape(self.sub_path, f, options, writer);