[FileTools] Get date from file

This commit is contained in:
Matt Nadareski
2016-09-12 14:29:04 -07:00
parent 30657ac144
commit 77f41f2130

View File

@@ -595,17 +595,19 @@ namespace SabreTools.Helper
return new Rom(); return new Rom();
} }
FileInfo temp = new FileInfo(input);
Rom rom = new Rom Rom rom = new Rom
{ {
Name = Path.GetFileName(input), Name = Path.GetFileName(input),
Type = ItemType.Rom, Type = ItemType.Rom,
HashData = new Hash HashData = new Hash
{ {
Size = (new FileInfo(input)).Length, Size = temp.Length,
CRC = string.Empty, CRC = string.Empty,
MD5 = string.Empty, MD5 = string.Empty,
SHA1 = string.Empty, SHA1 = string.Empty,
} },
Date = temp.CreationTime.ToString(),
}; };
try try