Function joinString [src]
Prototype
pub fn joinString(p: Path, gpa: Allocator, sub_path: []const u8) Allocator.Error![]u8
Parameters
p: Path
gpa: Allocator
sub_path: []const u8
Source
pub fn joinString(p: Path, gpa: Allocator, sub_path: []const u8) Allocator.Error![]u8 {
const parts: []const []const u8 =
if (p.sub_path.len == 0) &.{sub_path} else &.{ p.sub_path, sub_path };
return p.root_dir.join(gpa, parts);
}