Skip to content

Copy from multiple sources to multiple sources using pattern #121

Description

@nermin99

I have these data.txt files I want to copy:

src
    d01
        index.ts
        data.txt
    d02
        index.ts
        data.txt

the destination is:

dist
    d01
        index.js
        index.js.map
    d02
        index.js
        index.js.map

So I was expecting that

copyfiles -u 2 src/d*/*.txt dist/d*
# or
# copyfiles -u 2 src/d*/data.txt dist/d*/data.txt

would yield

dist
    d01
        index.js
        index.js.map
        data.txt
    d02
        index.js
        index.js.map
        data.txt

but, at best, I only get that the second folder (d02) is populated and not both.

dist
    d01
        index.js
        index.js.map
    d02
        index.js
        index.js.map
        data.txt

Additionally, I get a "can't go up that far" error.

As you might've suspected this is for a TypeScript project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions