How to create a directory in Lua?

后端 未结 4 1108
南旧
南旧 2021-02-19 20:46

Is it possible to create a directory in lua ? If so, how ?

4条回答
  •  花落未央
    2021-02-19 21:32

    You may find the LuaFileSystem library useful. It has a mkdir function.

    require "lfs"
    lfs.mkdir("/path/to/dir")
    

提交回复
热议问题