I can’t let the file-picker dialog point at a specific location:
const folder = await fs.getDataFolder()
const file = await fs.getFileForOpening({initialLocation: folder})
Tried it with various folder and file entries, but the open file dialog always starts at the location you previously opened a file from.
The option “initialDomain” works, but is not quite what I need.
I wasn’t sure whether I should post this or not as there are no official docs yet for the file API, but if it’s an unknown bug then this might help I hope.