Reputation: 21
I am trying to create a universal windows app. I need to access folders from hard coded or desired path (eg. local folders related to some installers ). Is it possible to access all the paths, as we do in traditional c#? I tried to search about it in many forums- i can able to get only sample codes to access folders that are specified in the capabilities part. i.e. using KnownFolders class.
Exactly to say: Is it possible to access folders without using windows.storage.Knownfolders class? I need an option similar to Directory.GetFiles(), where we can give our desired path as parameter that we have in traditional c#.
Upvotes: 1
Views: 146
Reputation: 21
You can use Windows.Storage.Pickers.FolderPicker to access other folder
Upvotes: -1
Reputation: 1385
Universal App runs inside a sandbox. By default, you can only access files in Application install directory or Application data locations. Other folders access is limited. You can just request additionnal capabilities to access KnownFolders. Please check the following documentation to obtain an overview on this topic.
Upvotes: 0