Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (22 sloc) 0.684 kb
using System;
using System.IO;
using System.Reactive.Concurrency;
using System.Reactive.Linq;
namespace Akavache
{
public class SimpleFilesystemProvider : IFilesystemProvider
{
public IObservable<Stream> SafeOpenFileAsync(string path, FileMode mode, FileAccess access, FileShare share, IScheduler scheduler)
{
return Utility.SafeOpenFileAsync(path, mode, access, share, scheduler).Select(x => (Stream) x);
}
public void CreateRecursive(string path)
{
Utility.CreateRecursive(new DirectoryInfo(path));
}
public void Delete(string path)
{
File.Delete(path);
}
}
}
Jump to Line
Something went wrong with that request. Please try again.