Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xieydd opened this issue Mar 22, 2023 · 1 comment
Open

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

xieydd opened this issue Mar 22, 2023 · 1 comment

Comments

@xieydd
Copy link
Member

xieydd commented Mar 22, 2023

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

@kemingy
Copy link
Member

kemingy commented Mar 22, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants