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();
|
outputStream.Dispose();
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(baseFile.Date))
|
// Try to set the creation time
|
||||||
File.SetCreationTime(fileName, DateTime.Parse(baseFile.Date));
|
try
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(baseFile.Date))
|
||||||
|
File.SetCreationTime(fileName, DateTime.Parse(baseFile.Date));
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user