envd icon indicating copy to clipboard operation
envd copied to clipboard

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

Open xieydd opened this issue 2 years ago • 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

xieydd avatar Mar 22 '23 03:03 xieydd

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

kemingy avatar Mar 22 '23 03:03 kemingy