blob: a0106f4777248fcabc2a75683d60935ea00b4800 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
local core = require "core"
local command = require "core.command"
command.add(nil, {
["files:create-directory"] = function()
core.command_view:enter("New directory name", function(text)
local success, err = system.mkdir(text)
if not success then
core.error("cannot create directory %q: %s", text, err)
end
end)
end,
})
|