mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-25 12:49:26 +01:00
Avoid unnecessary exceptions
This commit is contained in:
@@ -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