Archive.createWithStats

CreateStatsResult createWithStats(string fsRoot, string outDir, string base, string ext, CreateOptions co) @safe

Creates a new archive and returns operation statistics.

This is a convenience wrapper over low-level createArchiveWithStats() that returns both the Archive instance and the collected OperationStats.

Parameters

fsRootfilesystem root to back up
outDirdirectory where slices are written
basearchive base name
extslice extension (e.g., "dar")
cocreate options constructed via CreateOptions.create() or createOpts().toLow()

Returns

A CreateStatsResult containing the created archive and its statistics.

Throws

DarException on any error reported by libdar.