Новый графонистый файловый менеджер

This commit is contained in:
Igor Timofeev
2017-09-06 21:16:28 +03:00
parent 45e6722b59
commit 1638d91207
9 changed files with 2090 additions and 1511 deletions

View File

@@ -154,8 +154,9 @@ function filesystem.name(path)
return path:match("%/?([^%/]+)%/?$")
end
function filesystem.extension(path)
return path:match("[^%/]+(%.[^%/]+)%/?$")
function filesystem.extension(path, lower)
local extension = path:match("[^%/]+(%.[^%/]+)%/?$")
return (lower and extension) and (unicode.lower(extension)) or extension
end
function filesystem.hideExtension(path)