mirror of
https://github.com/Ale32bit/Capy64.git
synced 2025-12-14 10:05:44 +00:00
14 lines
235 B
Lua
14 lines
235 B
Lua
local fs = require("fs")
|
|
local args = { ... }
|
|
|
|
if #args == 0 then
|
|
print("Usage: mkdir <directory>")
|
|
return
|
|
end
|
|
|
|
local dir = shell.resolve(args[1])
|
|
if fs.exists(dir) then
|
|
error("Path already exists", 0)
|
|
end
|
|
|
|
fs.makeDir(dir)
|