getAppdataDirectory.lua 560 B

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