Skip to content

copy folder structure with flatten=false and ignore first levels #56

@carsten-wilhelm

Description

@carsten-wilhelm

I need to copy a folder structure (so flatten=false is necessary), but do not want to have the full path in destination.

Example:

targets:[{
    src: 'folder1/folder2',
    dest: 'destfolder'
}];

If the folder1/folder2 structure looks like this:

folder3.1/a.txt
folder3.2/folder3/b.txt

I need this in destination folder:

destfolder/folder3.1/a.txt
destfolder/folder3.2/folder3/b.txt

Instead, I get this (since the source folder gets copied in addition except the first one):

destfolder/folder2/folder3.1/a.txt
destfolder/folder2/folder3.2/folder3/b.txt

Is this possible with the copy plugin at all?

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