Sonarr/NzbDrone.Core/Providers/IDiskProvider.cs

18 lines
555 B
C#

using System;
using System.IO;
namespace NzbDrone.Core.Providers
{
public interface IDiskProvider
{
bool FolderExists(string path);
string[] GetDirectories(string path);
String CreateDirectory(string path);
string[] GetFiles(string path, string pattern, SearchOption searchOption);
bool FileExists(string path);
long GetSize(string path);
void DeleteFile(string path);
void RenameFile(string sourcePath, string destinationPath);
string GetFolderName(string path);
}
}