Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (26 sloc) 1.06 KB
using System;
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
namespace NodeAssets.Core
{
public interface IPile
{
bool IsWatchingFiles { get; }
event EventHandler<FileChangedEvent> FileUpdated;
event EventHandler<FileChangedEvent> FileDeleted;
event EventHandler<FileChangedEvent> FileCreated;
IPile AddDirectory(string directory, bool recursive);
IPile AddDirectory(string directory, bool recursive, Regex allowedFilePattern);
IPile AddDirectory(string pile, string directory, bool recursive);
IPile AddDirectory(string pile, string directory, bool recursive, Regex allowedFilePattern);
IPile AddFile(string fileName);
IPile AddFile(string pile, string fileName);
IPile AddUrl(string url);
IPile AddUrl(string pile, string url);
IEnumerable<string> FindAllPiles();
IEnumerable<Uri> FindUrls(string pile);
IEnumerable<FileInfo> FindFiles(string pile);
string FindFileHash(FileInfo file);
}
}