How to get path of resources directory for a given file?

Is there a method on the APP or PLUGIN API to get the path of the resources directory for a given file?

Essentially, the resources directory paths for my notes are different on ios and desktop so I’d like a way to get those paths dynamically.

If there’s not a way to do that, is there a way to tell whether the app is running on mobile or desktop? Then at least I could hardcode the respective paths.

Thanks for any advice!