Removed SetFolderWriteTime in favour of FolderSetLastWriteTimeUtc

This commit is contained in:
Mark McDowall 2014-02-26 07:55:13 -08:00
parent ea09a74ad9
commit 99336595b0
3 changed files with 2 additions and 8 deletions

View File

@ -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) private static void RemoveReadOnly(string path)
{ {
if (File.Exists(path)) if (File.Exists(path))

View File

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

View File

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