Add file.split_path

This commit is contained in:
Lars Mueller 2021-11-06 18:32:58 +01:00
parent c02a83aee8
commit ff9d1c9d95

@ -18,6 +18,12 @@ end
--! deprecated
get_extension = split_extension
function split_path(filepath)
return modlib.text.split(filepath, dir_delim)
end
-- concat_path is set by init.lua to avoid code duplication
function read(filename)
local file = io.open(filename, "r")
if file == nil then return nil end