add file.remove_ext

This commit is contained in:
MihailRis 2026-06-04 20:40:42 +03:00
parent 089bcbbb64
commit 841c2a5d54

View file

@ -23,6 +23,10 @@ function file.parent(path)
return dir
end
function file.remove_ext(path)
return string.format("%s/%s", file.parent(path), file.stem(path))
end
function file.path(path)
local pos = path:find(':')
return path:sub(pos + 1)