![]() ![]() If you want to access and open the folder directly, you can Add your folder to MostRecentlyUsedList. var folder = await ("MarkerApp", CreationCollisionOption.GenerateUniqueName) So, you can't use CreationCollisionOption.OpenIfExists, but you can use CreationCollisionOption.GenerateUniqueName to create folder. In the document DownloadsFolder.CreateFileAsync(String, CreationCollisionOption).īecause the app can only access files in the Downloads folder that it created, you can't specify OpenIfExists or ReplaceExisting for this parameter. ![]() If i try like this, the CreateFolderAsync throws "parameter incorrect" message Therefore, UWP is designed by this way, there is no direct access to the download folder, you can get user's default downloads folder through the File Picker. ![]() However, you can gain access to files and folders in the user's Downloads folder by calling a file picker ( FileOpenPicker or FolderPicker) so that users can navigate and pick files or folders for your app to access. By default, your app can only access files and folders in the user's Downloads folder that your app created. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |