getSize.lua 344 B

123456789101112131415161718
  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. }