tensorchord/envd

feat: Support wildcard character or file list for io.copy

xieydd opened this issue · 1 comments

Describe the feature

io.copy support wildcard character or file list, for example:
io.copy("*.py","/")
io.copy(["a.py","b.py"],"/")

Why do you need this feature?

Copy multiple files of the same type, very redundant.
now:

io.copy("app.py", "/")
io.copy("args.py", "/")
io.copy("gen.py", "/")
io.copy("strings.py", "/")
io.copy("styles.py", "/")
io.copy("utils.py", "/")

expected:

io.copy("*.py", "/")

or

io.copy(["a.py","b.py"],"/")

Additional context

No response

I think it can copy the directory. But it doesn't support the ignore file.