|
|
|
@ -294,6 +294,11 @@ namespace NzbDrone.Common.Disk
|
|
|
|
|
{
|
|
|
|
|
Ensure.That(path, () => path).IsValidPath();
|
|
|
|
|
|
|
|
|
|
if (dateTime.Before(DateTimeExtensions.Epoch))
|
|
|
|
|
{
|
|
|
|
|
dateTime = DateTimeExtensions.Epoch;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Directory.SetLastWriteTimeUtc(path, dateTime);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -301,6 +306,11 @@ namespace NzbDrone.Common.Disk
|
|
|
|
|
{
|
|
|
|
|
Ensure.That(path, () => path).IsValidPath();
|
|
|
|
|
|
|
|
|
|
if (dateTime.Before(DateTimeExtensions.Epoch))
|
|
|
|
|
{
|
|
|
|
|
dateTime = DateTimeExtensions.Epoch;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
File.SetLastWriteTime(path, dateTime);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|