2010-09-22 20:19:47 -07:00
|
|
|
using System;
|
2010-10-20 18:49:23 -07:00
|
|
|
using System.IO;
|
2010-09-22 20:19:47 -07:00
|
|
|
|
2010-09-27 21:25:41 -07:00
|
|
|
namespace NzbDrone.Core.Providers
|
2010-09-22 20:19:47 -07:00
|
|
|
{
|
2010-09-27 21:25:41 -07:00
|
|
|
public interface IDiskProvider
|
2010-09-22 20:19:47 -07:00
|
|
|
{
|
2010-10-24 00:46:58 -07:00
|
|
|
bool FolderExists(string path);
|
2010-09-22 20:19:47 -07:00
|
|
|
string[] GetDirectories(string path);
|
|
|
|
String CreateDirectory(string path);
|
2010-10-20 18:49:23 -07:00
|
|
|
string[] GetFiles(string path, string pattern, SearchOption searchOption);
|
2010-10-24 00:46:58 -07:00
|
|
|
bool FileExists(string path);
|
|
|
|
long GetSize(string path);
|
2011-02-17 22:49:23 -08:00
|
|
|
void DeleteFile(string path);
|
2011-02-21 22:22:40 -08:00
|
|
|
void RenameFile(string sourcePath, string destinationPath);
|
2010-09-22 20:19:47 -07:00
|
|
|
}
|
|
|
|
}
|