Skip to content

Commit

Permalink
GDAL: directory exists check
Browse files Browse the repository at this point in the history
  • Loading branch information
meee1 committed Apr 10, 2020
1 parent fd49a47 commit 8d3d552
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ExtLibs/GDAL/GDAL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ static GDAL()

public static void ScanDirectory(string path)
{
if (!Directory.Exists(path))
return;

var files = Directory.GetFiles(path, "*.*", SearchOption.AllDirectories);

int i = 0;
Expand Down

0 comments on commit 8d3d552

Please sign in to comment.