summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/IIsolatedStorageFile.cs
blob: 684d402c6c6c0a9c77e12c204fd37ecd7f4cc597 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System;
using System.IO;
using System.Threading.Tasks;

namespace Xamarin.Forms.Internals
{
	public interface IIsolatedStorageFile
	{
		Task CreateDirectoryAsync(string path);
		Task<bool> GetDirectoryExistsAsync(string path);
		Task<bool> GetFileExistsAsync(string path);

		Task<DateTimeOffset> GetLastWriteTimeAsync(string path);

		Task<Stream> OpenFileAsync(string path, FileMode mode, FileAccess access);
		Task<Stream> OpenFileAsync(string path, FileMode mode, FileAccess access, FileShare share);
	}
}