summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/IIsolatedStorageFile.cs
blob: 5089902349f9611e3ddd345dfb24f5b6b1f65842 (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
{
	internal 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);
	}
}