| ... | @@ -157,12 +157,17 @@ pub fn format( | ... | @@ -157,12 +157,17 @@ pub fn format( |
| 157 | } | 157 | } |
| 158 | if (self.root_dir.path) |p| { | 158 | if (self.root_dir.path) |p| { |
| 159 | try writer.writeAll(p); | 159 | try writer.writeAll(p); |
| 160 | try writer.writeAll(fs.path.sep_str); | 160 | if (self.sub_path.len > 0) { |
| | 161 | try writer.writeAll(fs.path.sep_str); |
| | 162 | try writer.writeAll(self.sub_path); |
| | 163 | } |
| | 164 | return; |
| 161 | } | 165 | } |
| 162 | if (self.sub_path.len > 0) { | 166 | if (self.sub_path.len > 0) { |
| 163 | try writer.writeAll(self.sub_path); | 167 | try writer.writeAll(self.sub_path); |
| 164 | try writer.writeAll(fs.path.sep_str); | 168 | return; |
| 165 | } | 169 | } |
| | 170 | try writer.writeByte('.'); |
| 166 | } | 171 | } |
| 167 | | 172 | |
| 168 | pub fn eql(self: Path, other: Path) bool { | 173 | pub fn eql(self: Path, other: Path) bool { |