Local file

If I’m writing a binding and I want the binding to store some custom information locally - is there a directory that I should be using (or a service)?

Correct me if I’m wrong but it looks like I use ConfigConstants.getUserDataFolder() to get the user data folder and just write a unique file name…