public static async Task <int> Repair(string inputPath, string recoveryFilePath, Action <string, bool> processStdOutLine, CancellationToken token) { return(await ProcessHelper.RunProcessAsync(PAR2_PATH, processStdOutLine, token, "repair", "/uo", $"/d\"{inputPath}\"", $"\"{recoveryFilePath}\"")); }
public static async Task <int> Create(string inputPath, string recoveryFilePath, Action <string, bool> processStdOutLine, double redundancy, CancellationToken token) { return(await ProcessHelper.RunProcessAsync(PAR2_PATH, processStdOutLine, token, "create", "/uo", $"/rr{redundancy:0.##}", $"\"{recoveryFilePath}\"", $"\"{Path.Combine(inputPath, "*")}\"")); }