Removed SetFolderWriteTime in favour of FolderSetLastWriteTimeUtc

pull/3113/head
Mark McDowall 11 years ago
parent ea09a74ad9
commit 99336595b0

@ -365,11 +365,6 @@ namespace NzbDrone.Common.Disk
}
public void SetFolderWriteTime(string path, DateTime time)
{
Directory.SetLastWriteTimeUtc(path, time);
}
private static void RemoveReadOnly(string path)
{
if (File.Exists(path))

@ -37,7 +37,6 @@ namespace NzbDrone.Common.Disk
string GetPathRoot(string path);
string GetParentFolder(string path);
void SetPermissions(string filename, WellKnownSidType accountSid, FileSystemRights rights, AccessControlType controlType);
void SetFolderWriteTime(string path, DateTime time);
FileAttributes GetFileAttributes(string path);
void EmptyFolder(string path);
string[] GetFixedDrives();

@ -98,14 +98,14 @@ namespace NzbDrone.Core.MediaFiles
try
{
_logger.Trace("Setting last write time on series folder: {0}", series.Path);
_diskProvider.SetFolderWriteTime(series.Path, episodeFile.DateAdded);
_diskProvider.FolderSetLastWriteTimeUtc(series.Path, episodeFile.DateAdded);
if (series.SeasonFolder)
{
var seasonFolder = Path.GetDirectoryName(destinationFilename);
_logger.Trace("Setting last write time on season folder: {0}", seasonFolder);
_diskProvider.SetFolderWriteTime(seasonFolder, episodeFile.DateAdded);
_diskProvider.FolderSetLastWriteTimeUtc(seasonFolder, episodeFile.DateAdded);
}
}

Loading…
Cancel
Save