Skip to content

How to copy only files without the folder structure #51

@jaichandra

Description

@jaichandra

How can I flatten the folder structure and just copy the files? Similar to what copyfiles library does with -f option (https://www.npmjs.com/package/copyfiles).

I'm using cpx './dist/**/*.umd.js' './dest/assets', but this maintains the tree structure and creates all the subfolders in the destination directory. I need to copy just the files under the root of the destination folder.

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