mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-16 08:27:44 +01:00
Avoid unnecessary exceptions
This commit is contained in:
@@ -601,7 +601,7 @@ namespace Flowframes
|
||||
Logger.Log("Selected video/directory: " + Path.GetFileName(files[0]), true);
|
||||
inputTbox.Text = files[0];
|
||||
|
||||
bool resume = (IoUtils.GetAmountOfFiles(Path.Combine(files[0], Paths.resumeDir), true, "*.json") > 0);
|
||||
bool resume = Directory.Exists(files[0]) && IoUtils.GetAmountOfFiles(Path.Combine(files[0], Paths.resumeDir), true, "*.json") > 0;
|
||||
AutoEncodeResume.resumeNextRun = resume;
|
||||
|
||||
if (resume)
|
||||
|
||||
@@ -206,6 +206,9 @@ namespace Flowframes.IO
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!Directory.Exists(path))
|
||||
return 0;
|
||||
|
||||
DirectoryInfo d = new DirectoryInfo(path);
|
||||
FileInfo[] files = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user