CreateOptions.setProgressCallback

void setProgressCallback(dar_message_cb warningCb, dar_treated_cb treatedCb, void * ctx) @trusted

Sets progress callbacks for archive operations.

These callbacks are invoked during archive creation to report progress. The warning callback receives info/warning messages from libdar. The treated callback receives the path of each file being processed.

Parameters

warningCbcallback for warning/info messages (may be null)
treatedCbcallback for file treatment progress (may be null)
ctxuser context pointer passed to callbacks Example:
auto co = CreateOptions.create();
int fileCount = 0;
co.setProgressCallback(
   (msg, ctx) { writeln("Info: ", msg.fromStringz); },
   (path, ctx) { (cast(int*)ctx)++; },
   &fileCount
);