mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[FileTools] Get date from file
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user