[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();
}
FileInfo temp = new FileInfo(input);
Rom rom = new Rom
{
Name = Path.GetFileName(input),
Type = ItemType.Rom,
HashData = new Hash
{
Size = (new FileInfo(input)).Length,
Size = temp.Length,
CRC = string.Empty,
MD5 = string.Empty,
SHA1 = string.Empty,
}
},
Date = temp.CreationTime.ToString(),
};
try