Get file or directory statistics

Verified
Added by iNTERFACEWARE

Use s.fs.stat() to get statistics for a file or directory

Source Code
   -- get statistics for a file or directory
   
   -- file statistics
   local FileInfo = os.fs.stat('IguanaConfiguration.xml')

   -- directory statistics
   local FileInfo = os.fs.stat('logs')
Description
Use s.fs.stat() to get statistics for a file or directory
Usage Details

Use os.fs.fstat() to get statistics for a file or directory. Includes things like creation date, last modified date, permissions, size, etc.

How to use the snippet:

  • Paste the code into your script