mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-03 09:09:42 +02:00
Fixed LastWriteTime
This commit is contained in:
@@ -39,7 +39,7 @@ namespace NzbDrone.Common
|
||||
string GetPathRoot(string path);
|
||||
void SetPermissions(string filename, WellKnownSidType accountSid, FileSystemRights rights, AccessControlType controlType);
|
||||
bool IsParent(string parentPath, string childPath);
|
||||
void SetFolderAccessTime(string path, DateTime time){
|
||||
void SetFolderWriteTime(string path, DateTime time);
|
||||
FileAttributes GetFileAttributes(string path);
|
||||
void EmptyFolder(string path);
|
||||
}
|
||||
@@ -442,6 +442,10 @@ namespace NzbDrone.Common
|
||||
return false;
|
||||
}
|
||||
|
||||
public void SetFolderWriteTime(string path, DateTime time)
|
||||
{
|
||||
Directory.SetLastWriteTimeUtc(path, time);
|
||||
}
|
||||
|
||||
private static void RemoveReadOnly(string path)
|
||||
{
|
||||
@@ -452,10 +456,6 @@ namespace NzbDrone.Common
|
||||
}
|
||||
}
|
||||
|
||||
private void SetFolderAccessTime(string path, DateTime time){
|
||||
Directory.SetLastWriteTimeUtc(path,time);
|
||||
}
|
||||
|
||||
public FileAttributes GetFileAttributes(string path)
|
||||
{
|
||||
return File.GetAttributes(path);
|
||||
|
Reference in New Issue
Block a user