async/background TryDeleteIfExistsAsync & DeleteContentsOfDir

This commit is contained in:
N00MKRAD
2021-05-09 18:31:39 +02:00
parent b3a32ff557
commit f9a631340d
7 changed files with 72 additions and 84 deletions

View File

@@ -291,7 +291,7 @@ namespace Flowframes
string lastInterpPath = outPath + $"-run{iteration - 1}";
Directory.Move(outPath, lastInterpPath); // Rename last interp folder
await RunRifeNcnnProcess(lastInterpPath, outPath, mdl);
IOUtils.TryDeleteIfExists(lastInterpPath);
await IOUtils.TryDeleteIfExistsAsync(lastInterpPath);
}
else
{