Removed SetFolderWriteTime in favour of FolderSetLastWriteTimeUtc

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

@ -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();

@ -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);
} }
} }

Loading…
Cancel
Save