2018-03-24 00:18:25 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Xamarin.Forms.Internals;
|
|
|
|
|
|
|
|
|
|
namespace Ooui.Forms
|
|
|
|
|
{
|
|
|
|
|
public class LocalIsolatedStorageFile : IIsolatedStorageFile
|
|
|
|
|
{
|
|
|
|
|
public Task CreateDirectoryAsync (string path)
|
|
|
|
|
{
|
|
|
|
|
return Task.FromResult<object> (null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Task<bool> GetDirectoryExistsAsync (string path)
|
|
|
|
|
{
|
|
|
|
|
return Task.FromResult<bool> (true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Task<bool> GetFileExistsAsync (string path)
|
|
|
|
|
{
|
|
|
|
|
return Task.FromResult<bool> (false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Task<DateTimeOffset> GetLastWriteTimeAsync (string path)
|
|
|
|
|
{
|
|
|
|
|
throw new NotSupportedException ();
|
|
|
|
|
}
|
|
|
|
|
|
2018-05-15 08:30:42 +00:00
|
|
|
|
public Task<Stream> OpenFileAsync (string path, FileMode mode, FileAccess access)
|
2018-03-24 00:18:25 +00:00
|
|
|
|
{
|
|
|
|
|
throw new NotSupportedException ();
|
|
|
|
|
}
|
|
|
|
|
|
2018-05-15 08:30:42 +00:00
|
|
|
|
public Task<Stream> OpenFileAsync (string path, FileMode mode, FileAccess access, FileShare share)
|
2018-03-24 00:18:25 +00:00
|
|
|
|
{
|
|
|
|
|
throw new NotSupportedException ();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|