From 8d3d552079577a6cfc9ee7bc750f6ffd777d77b6 Mon Sep 17 00:00:00 2001 From: Michael Oborne Date: Fri, 10 Apr 2020 18:00:55 +0800 Subject: [PATCH] GDAL: directory exists check --- ExtLibs/GDAL/GDAL.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ExtLibs/GDAL/GDAL.cs b/ExtLibs/GDAL/GDAL.cs index 40185c06b5..eef2e45f36 100644 --- a/ExtLibs/GDAL/GDAL.cs +++ b/ExtLibs/GDAL/GDAL.cs @@ -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;