Fixed non existing file crashing

This commit is contained in:
erri120
2020-04-23 12:37:58 +02:00
parent 484faa0922
commit 95217035c9

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
{