- private async Task<string> CreateFolder()
- {
- try
- {
- string folderName = "myNewFolderName";
- StorageFolder folder = ApplicationData.Current.LocalFolder;
- await folder.CreateFolderAsync(folderName);
- return "success";
- }
- catch (Exception ex)
- {
- return "fail";
- }
- }
This creates a folder with name "myNewFolderName" in the local application folder. Its path is: This PC > C > Users > [Your User Name] > AppData > Local
> Packages > [App package name]
> LocalState.