Added EDepotFileFlag, don't assume size=0 is a directory

pull/8/head
azuisleet 14 years ago
parent aa0778dc4e
commit 6c545644e0

@ -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);

Loading…
Cancel
Save