Get file or directory statistics

Verified
Added by iNTERFACEWARE

Use os.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 os.fs.stat() to get statistics for a file or directory
Usage Details

Use os.fs.stat() 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