| ... | @@ -124,7 +124,7 @@ pub const Path = struct { | ... | @@ -124,7 +124,7 @@ pub const Path = struct { |
| 124 | }; | 124 | }; |
| 125 | if (self.root_dir.path) |p| { | 125 | if (self.root_dir.path) |p| { |
| 126 | try stringEscape(p, f, options, writer); | 126 | try stringEscape(p, f, options, writer); |
| 127 | if (self.sub_path.len > 0) try writer.writeAll(fs.path.sep_str); | 127 | if (self.sub_path.len > 0) try stringEscape(fs.path.sep_str, f, options, writer); |
| 128 | } | 128 | } |
| 129 | if (self.sub_path.len > 0) { | 129 | if (self.sub_path.len > 0) { |
| 130 | try stringEscape(self.sub_path, f, options, writer); | 130 | try stringEscape(self.sub_path, f, options, writer); |