From 6c545644e0bc7c7876054a200b259610a8b8ccce Mon Sep 17 00:00:00 2001 From: azuisleet Date: Sun, 1 Apr 2012 17:11:33 -0600 Subject: [PATCH] Added EDepotFileFlag, don't assume size=0 is a directory --- DepotDownloader/ContentDownloader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs index b8c5b1b4..77943f56 100644 --- a/DepotDownloader/ContentDownloader.cs +++ b/DepotDownloader/ContentDownloader.cs @@ -544,7 +544,7 @@ namespace DepotDownloader { string download_path = Path.Combine(installDir, file.FileName); - if (file.TotalSize == 0) // directory + if (file.Flags.HasFlag(EDepotFileFlag.Directory)) { if (!Directory.Exists(download_path)) Directory.CreateDirectory(download_path);