getSize.lua 405 B

12345678910111213141516171819
  1. return {
  2. summary = 'Get the size of a file.',
  3. description = 'Returns the size of a file, in bytes.',
  4. arguments = {
  5. {
  6. name = 'file',
  7. type = 'string',
  8. description = 'The file.'
  9. }
  10. },
  11. returns = {
  12. {
  13. name = 'size',
  14. type = 'number',
  15. description = 'The size of the file, in bytes.'
  16. }
  17. },
  18. notes = 'If the file does not exist, an error is thrown.'
  19. }