getRealDirectory.lua 558 B

123456789101112131415161718192021
  1. return {
  2. summary = 'Get the absolute path to a file.',
  3. description = [[
  4. Get the absolute path of the mounted archive containing a path in the virtual filesystem. This
  5. can be used to determine if a file is in the game's source directory or the save directory.
  6. ]],
  7. arguments = {
  8. {
  9. name = 'path',
  10. type = 'string',
  11. description = 'The path to check.'
  12. }
  13. },
  14. returns = {
  15. {
  16. name = 'realpath',
  17. type = 'string',
  18. description = 'The absolute path of the mounted archive containing `path`.'
  19. }
  20. }
  21. }