mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Wrap the creation time setting
This commit is contained in:
@@ -379,8 +379,13 @@ namespace SabreTools.FileTypes
|
||||
|
||||
outputStream.Dispose();
|
||||
|
||||
// Try to set the creation time
|
||||
try
|
||||
{
|
||||
if (!string.IsNullOrEmpty(baseFile.Date))
|
||||
File.SetCreationTime(fileName, DateTime.Parse(baseFile.Date));
|
||||
}
|
||||
catch { }
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user