Create a directory

Verified
Added by iNTERFACEWARE

Use os.fs.mkdir() to create a directory

Source Code
   -- create and delete a directory
   os.fs.mkdir('MyTempDir')
   os.fs.stat('MyTempDir')
   
   -- remove (delete) the directory
   os.fs.rmdir('MyTempDir')  
   os.fs.stat('MyTempDir') -- stats no longer available
Description
Use os.fs.mkdir() to create a directory
Usage Details

Use os.fs.mkdir() to create a directory.

How to use the snippet:

  • Paste the code into your script