From 0f2edd0a942687036e5988eff8bd7aa627d09dcd Mon Sep 17 00:00:00 2001 From: psychonic Date: Tue, 5 Jun 2012 16:45:41 -0500 Subject: [PATCH] Fix error downloading some depots to current directory (-dir .) --- DepotDownloader/ContentDownloader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs index 7535d46..3c4647b 100644 --- a/DepotDownloader/ContentDownloader.cs +++ b/DepotDownloader/ContentDownloader.cs @@ -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 )