Fix error downloading some depots to current directory (-dir .)

This commit is contained in:
psychonic committed 2012-06-05 16:45:41 -05:00
1 parent 25c47e2fbb
commit 0f2edd0a94
1 file changed
+1 -1
+1 -1
View File
@@ -719,7 +719,7 @@ namespace DepotDownloader
string path = Path.GetDirectoryName(downloadPath);
if (!Directory.Exists(path))
if (path != "" && !Directory.Exists(path))
Directory.CreateDirectory(path);
if ( dirEntry.FileID == -1 )