commit 5f536ec
Michael Forney
·
2024-01-01 19:45:34 +0000 UTC
parent bb53f84
Allow nested tables in copy() file list
1 files changed,
+2,
-2
+2,
-2
1@@ -499,9 +499,9 @@ end
2
3 function copy(outdir, srcdir, files)
4 local outs = {}
5- for i, file in ipairs(files) do
6+ for file in iterstrings(files) do
7 local out = outdir..'/'..file
8- outs[i] = out
9+ table.insert(outs, out)
10 build('copy', out, srcdir..'/'..file)
11 end
12 return outs