mirror of
https://github.com/appgurueu/modlib.git
synced 2024-12-22 21:32:27 +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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user