#if OPENZUNE using System.Collections.Generic; using System.IO; using System.Threading; using System.Threading.Tasks; namespace OwlCore.AbstractStorage; public class Win32FileSystemService : IFileSystemService { public Win32FileSystemService(string rootFolder) { RootFolder = new SystemIOFolderData(rootFolder); } public IFolderData RootFolder { get; } public bool IsInitialized => true; public Task CreateDirectoryAsync(string folderName) => RootFolder.CreateFolderAsync(folderName); public Task DirectoryExistsAsync(string path) => Task.FromResult(Directory.Exists(path)); public Task FileExistsAsync(string path) => Task.FromResult(File.Exists(path)); public Task GetFileFromPathAsync(string path) => Task.FromResult(new SystemIOFileData(path)); public Task GetFolderFromPathAsync(string path) => Task.FromResult(new SystemIOFolderData(path)); public Task> GetPickedFolders() { throw new System.NotImplementedException(); } public Task InitAsync(CancellationToken cancellationToken = default) => Task.CompletedTask; public Task PickFolder() { return Task.FromResult(RootFolder); } public Task RevokeAccess(IFolderData folder) => Task.CompletedTask; } #endif