Skip to content

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

Open
@xieydd

Description

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions