public async Task <bool> ClearAsync() { if (SecondaryFolderType == StorageFolderType.Root) { return(await StorageHelper.ClearAsync(ApplicationDataLocality.LocalCache)); } return(await SecondaryFolder.TryDeleteAsync()); }
protected async Task <StorageFolder> GetOrCreateCurrentFolderAsync(string name) { if (string.IsNullOrEmpty(name)) { return(SecondaryFolder); } var currentFolder = await SecondaryFolder.TryGetFolderAsync(name); if (currentFolder == null) { return(await SecondaryFolder.TryCreateFolderAsync(name)); } return(currentFolder); }