async Task PlatformMove(IFile file, IFolder destination, string newName, NGNameCollisionOption option) { if (file is NGFile ngfile && destination is NGFolder ngfolder) { await ngfile.Context.MoveAsync(ngfolder.Context, newName, (Windows.Storage.NameCollisionOption) option); } }
async Task PlatformRename(NGIStorageItem item, string newName, NGNameCollisionOption option) { if (item.Context is Windows.Storage.IStorageItem winItem) { await winItem.RenameAsync(newName, (Windows.Storage.NameCollisionOption) option); } }
async Task <IFile> PlatformCopy(IFile file, IFolder destination, string newName, NGNameCollisionOption option) { if (file is NGFile ngfile && destination is NGFolder ngfolder) { var f = await ngfile.Context.CopyAsync(ngfolder.Context, newName, (Windows.Storage.NameCollisionOption) option); return(new NGFile(f)); } return(null); }