Archive.close

void close() @safe @nogc nothrow

Explicitly closes the archive and releases resources.

After calling close(), the archive handle becomes invalid and no further operations can be performed on it. This method is idempotent (safe to call multiple times).

Note

The destructor calls this automatically, so explicit cleanup

is optional but can be useful for deterministic resource management.

Example:

auto arc = Archive.open("/backups", "myarchive", "dar", readOpts().toLow());
// ... use the archive ...
arc.close();  // explicit cleanup
assert(!arc.isValid);