mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-03-27 18:22:47 +01:00
Новый графонистый файловый менеджер
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user