mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-22 07:13:45 +01:00
Add file.split_path
This commit is contained in:
parent
c02a83aee8
commit
ff9d1c9d95
6
file.lua
6
file.lua
@ -18,6 +18,12 @@ end
|
|||||||
--! deprecated
|
--! deprecated
|
||||||
get_extension = split_extension
|
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)
|
function read(filename)
|
||||||
local file = io.open(filename, "r")
|
local file = io.open(filename, "r")
|
||||||
if file == nil then return nil end
|
if file == nil then return nil end
|
||||||
|
Loading…
Reference in New Issue
Block a user