June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
11
Task/Make-directory-path/Lua/make-directory-path.lua
Normal file
11
Task/Make-directory-path/Lua/make-directory-path.lua
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
require("lfs")
|
||||
|
||||
function mkdir (path)
|
||||
local sep, pStr = package.config:sub(1, 1), ""
|
||||
for dir in path:gmatch("[^" .. sep .. "]+") do
|
||||
pStr = pStr .. dir .. sep
|
||||
lfs.mkdir(pStr)
|
||||
end
|
||||
end
|
||||
|
||||
mkdir("C:\\path\\to\\dir") -- Quoting backslashes requires escape sequence
|
||||
Loading…
Add table
Add a link
Reference in a new issue