lua-modules/lua/fs.example.lua

13 lines
263 B
Lua

local fs = require("filesystem")
local root = fs.directory(".")
string.starts_with = function(self, str)
return self:find('^' .. str) ~= nil
end
for entry in root do
if not entry.rel_path:starts_with("%.") then
print(entry.rel_path)
end
end