Avoid unnecessary exceptions

This commit is contained in:
n00mkrad
2023-01-31 11:45:12 +01:00
parent e314ad8639
commit 9bfb909c09
2 changed files with 4 additions and 1 deletions

View File

@@ -206,6 +206,9 @@ namespace Flowframes.IO
{
try
{
if (!Directory.Exists(path))
return 0;
DirectoryInfo d = new DirectoryInfo(path);
FileInfo[] files = null;