23 lines
471 B
Lua
23 lines
471 B
Lua
local fs = require("filesystem")
|
|
|
|
local dirs = fs.directory("/Users/kinch/Desktop/Onepunch-Man")
|
|
|
|
for dir in dirs do
|
|
if dir:is_dir() then
|
|
print(dir)
|
|
end
|
|
end
|
|
|
|
--for dir in dirs do
|
|
-- local files = dir:filter {
|
|
-- exclude = function(file)
|
|
-- return file.is_file and not file.basename:starts_with("._")
|
|
-- end
|
|
-- }
|
|
--
|
|
-- zip {
|
|
-- from = files,
|
|
-- into = dir.basename,
|
|
-- extension = "cbz",
|
|
-- }
|
|
--end |