Beispiel #1
0
 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}\""));
 }
Beispiel #2
0
 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, "*")}\""));
 }