Read file without requiring user consent

I have a legacy plugin that has been storing its own data folder — ~/Library/Application Storage/GuideGuide for the last decade. In the UXP version I would ideally like to be able to check the old data folder in the background and simply migrate the data without having to ask the user to futz around in folders and file dialogs.

However, it seems like UXP plugins now encourage the sandboxed plugin directory as the location for storage, and folders outside of that require explicit consent to access. It seems like I’m going to be forced to prompt the user to find their old data (and explain to them how to access the hidden folders) and import it manually. Is this correct?

You can set the initial location for the picker with initialDomain option. I suppose you could set separate paths for Mac and Win by checking OS