getAppdataDirectory.lua 465 B

123456789101112131415161718
  1. return {
  2. summary = 'Get the application data directory.',
  3. description = [[
  4. Returns the application data directory. This will be something like:
  5. - `C:\Users\user\AppData\Roaming` on Windows.
  6. - `/home/user/.config` on Linux.
  7. - `/Users/user/Library/Application Support` on macOS.
  8. ]],
  9. arguments = {},
  10. returns = {
  11. {
  12. name = 'path',
  13. type = 'string',
  14. description = 'The absolute path to the appdata directory.'
  15. }
  16. }
  17. }