std › Build › Cache › Directory › clonecloneFunction parametersParameters#d:Directoryarena:AllocatorFunctions in this namespaceFunctions#clonecwdjoinjoinZcloseAndFree Whether or not the handle should be closed, or the path should be freedformateqlSourceImplementation#pub fn clone(d: Directory, arena: Allocator) Allocator.Error!Directory { return .{ .path = if (d.path) |p| try arena.dupe(u8, p) else null, .handle = d.handle, }; }
pub fn clone(d: Directory, arena: Allocator) Allocator.Error!Directory { return .{ .path = if (d.path) |p| try arena.dupe(u8, p) else null, .handle = d.handle, }; }