getLastModified.lua 448 B

123456789101112131415161718
  1. return {
  2. summary = 'Get the modification time of a file.',
  3. description = 'Returns when a file was last modified, since some arbitrary time in the past.',
  4. arguments = {
  5. {
  6. name = 'path',
  7. type = 'string',
  8. description = 'The file to check.'
  9. }
  10. },
  11. returns = {
  12. {
  13. name = 'time',
  14. type = 'number',
  15. description = 'The modification time of the file, in seconds, or `nil` if it\'s unknown.'
  16. }
  17. }
  18. }