бля, забыл ширину

This commit is contained in:
igor
2017-12-11 21:14:26 +03:00
parent 0d7d5bc734
commit a5d7eeb779
2 changed files with 9 additions and 8 deletions

View File

@@ -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("[^%/]+(%.[^%/]+)%/?$")