mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-03-29 04:02:47 +02:00
бля, забыл ширину
This commit is contained in:
@@ -146,13 +146,13 @@ end
|
||||
|
||||
---------------------------------------------- Filesystem extensions ------------------------------------------------------------------------
|
||||
|
||||
function filesystem.path(path)
|
||||
return path:match("^(.+%/).") or ""
|
||||
end
|
||||
-- function filesystem.path(path)
|
||||
-- return path:match("^(.+%/).") or ""
|
||||
-- end
|
||||
|
||||
function filesystem.name(path)
|
||||
return path:match("%/?([^%/]+)%/?$")
|
||||
end
|
||||
-- function filesystem.name(path)
|
||||
-- return path:match("%/?([^%/]+)%/?$")
|
||||
-- end
|
||||
|
||||
function filesystem.extension(path, lower)
|
||||
local extension = path:match("[^%/]+(%.[^%/]+)%/?$")
|
||||
|
||||
Reference in New Issue
Block a user