Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UWP apps accessing files from random location on system

in UWP there are files and permissions restrictions, so we can only acces files directly from few folders or we can use filepicker to access from anywhere on system. how can I use the files picked from filepicker and use them anytime again when the app runs ? tried to use them again by path but it gives permission error. I know about the "futureacceslist" but its limit is 1000 and also it will make the app slow if I am not wrong? . Is there a better way to do this ? or can we store storage files link somehow in local sqlite database?

like image 598
Muhammad Touseef Avatar asked Feb 10 '23 00:02

Muhammad Touseef


1 Answers

If you need to access lots of files, asking the user to select the parent folder and then storing that is probably a better solution (unless you want to store 1,000 individually-picked files from different locations). You can store StorageFolders in the access list as well.

I'm not sure why you think it will make your app slow, but the only real way to know if this will affect your performance is to try it and measure against your goals.

like image 65
Peter Torr - MSFT Avatar answered Mar 02 '23 19:03

Peter Torr - MSFT