Archive.extract

void extract(string destDir) @safe

Extracts the archive contents to the specified directory.

All files and directories from the archive are restored to destDir, preserving the original directory structure.

Parameters

destDirdestination directory for extraction Example:
auto arc = Archive.open("/backups", "myarchive", "dar", readOpts().toLow());
arc.extract("/home/user/restored");
*

Throws

DarException if extraction fails (permission denied, disk full, path issues, or corrupted data).