fn closeAndFree(self: *Directory, gpa: Allocator) void

Whether or not the handle should be closed, or the path should be freed is determined by usage, however this function is provided for convenience if it happens to be what the caller needs.

Parameters

self: *Directory,
gpa: Allocator,