You use the native FileManger with authorization. But I’m not sure it’s supported in the catalyst sandbox.
https://developer.apple.com/documentation/foundation/filemanager/3025773-init
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have MAUI application that deletes file. But I can get UnathorizedException, because file is secured. I want a dialog to appear for user "Application NAME_OF_MY_APP wants to delete FILE", like Finder does when you want to delete some protected file, and user authenticates and permit it. How can I implement this functionality in MAUI?
if (Directory.Exists(Path.Combine(newFolderPath, "FirstDigitalSigner.app", "Contents", "Frameworks", "libSkiaSharp.framework", "Versions", "Current"))) {
Directory.Delete(Path.Combine(newFolderPath, "FirstDigitalSigner.app", "Contents", "Frameworks", "libSkiaSharp.framework", "Versions", "Current"), true); // Here I am getting UnathorizedException because programm does not authorized to do it. How to request authorization for it?
}
You use the native FileManger with authorization. But I’m not sure it’s supported in the catalyst sandbox.
https://developer.apple.com/documentation/foundation/filemanager/3025773-init