|
|
|
@ -38,6 +38,7 @@ namespace NzbDrone.Common
|
|
|
|
|
string GetPathRoot(string path);
|
|
|
|
|
void SetPermissions(string filename, string account, FileSystemRights Rights, AccessControlType ControlType);
|
|
|
|
|
bool IsParent(string parentfolder, string subfolder);
|
|
|
|
|
FileAttributes GetFileAttributes(string path);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class DiskProvider : IDiskProvider
|
|
|
|
@ -112,7 +113,6 @@ namespace NzbDrone.Common
|
|
|
|
|
return FolderExists(path);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public virtual bool FileExists(string path)
|
|
|
|
|
{
|
|
|
|
|
Ensure.That(() => path).IsValidPath();
|
|
|
|
@ -438,5 +438,10 @@ namespace NzbDrone.Common
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public FileAttributes GetFileAttributes(string path)
|
|
|
|
|
{
|
|
|
|
|
return File.GetAttributes(path);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|