Fixed non existing file crashing

This commit is contained in:
erri120 2020-04-23 12:37:58 +02:00
parent 484faa0922
commit 95217035c9
No known key found for this signature in database
GPG Key ID: A8C0A18D8D4D3135

View File

@ -119,7 +119,7 @@ namespace Wabbajack.Common
}
}
public long Size => new FileInfo(_path).Length;
public long Size => Exists ? new FileInfo(_path).Length : 0;
public DateTime LastModified
{