How do I copy files from a selected directory to the application directory?
Максим Нечепуренко
0
Reputation points
How do I copy files from a selected directory to the application directory in iOS using C#?
I am using a folder picker from the Community Toolkit to select the directory. After selecting the directory, I try to get a list of files in the directory using the Directory.GetFiles()
method. However, this causes an error: "Access to the path 'SelectedFolderPath' is denied". This happens when running on iOS, but not on the iOS simulator. How can I fix this error? Do I need to modify the info.plist
file for permissions, like Android's manifest
file?
Sign in to answer