lite-xl/data/core/commands/files.lua

15 lines
403 B
Lua
Raw Permalink Normal View History

local core = require "core"
local command = require "core.command"
local common = require "core.common"
command.add(nil, {
["files:create-directory"] = function()
core.command_view:enter("New directory name", function(text)
local success, err, path = common.mkdirp(text)
if not success then
core.error("cannot create directory %q: %s", path, err)
end
end)
end,
})