mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-24 20:29:26 +01:00
Retries for deleteing .bak video
This commit is contained in:
@@ -253,7 +253,6 @@ namespace Flowframes
|
||||
|
||||
public ModelCollection.ModelInfo GetModel(AI currentAi)
|
||||
{
|
||||
//return aiModel.Text.Split('-')[0].Remove(" ").Remove(".");
|
||||
return AiModels.GetModels(currentAi).models[aiModel.SelectedIndex];
|
||||
}
|
||||
|
||||
|
||||
@@ -153,9 +153,6 @@ namespace Flowframes.IO
|
||||
|
||||
public static bool AreFilesValid (string ai, string model)
|
||||
{
|
||||
if (Debugger.IsAttached) // Disable MD5 check in dev environment
|
||||
return true;
|
||||
|
||||
string mdlDir = GetLocalPath(ai, model);
|
||||
|
||||
if (!Directory.Exists(mdlDir))
|
||||
@@ -164,6 +161,9 @@ namespace Flowframes.IO
|
||||
return false;
|
||||
}
|
||||
|
||||
if (Debugger.IsAttached) // Disable MD5 check in dev environment
|
||||
return true;
|
||||
|
||||
string md5FilePath = Path.Combine(mdlDir, "md5.txt");
|
||||
|
||||
if (!File.Exists(md5FilePath) || IOUtils.GetFilesize(md5FilePath) < 32)
|
||||
|
||||
@@ -192,7 +192,7 @@ namespace Flowframes.Main
|
||||
await MergeChunks(tempConcatFile, outPath, isBackup);
|
||||
|
||||
if (!isBackup)
|
||||
IOUtils.DeleteIfExists(IOUtils.FilenameSuffix(outPath, Paths.backupSuffix));
|
||||
Task.Run(async () => { await IOUtils.TryDeleteIfExistsAsync(IOUtils.FilenameSuffix(outPath, Paths.backupSuffix)); });
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
|
||||
Reference in New Issue
Block a user