Currently the only way to preserve the folder structure from the sources is to specify cwd to the parent of the source and parents: true.
This is already a bit cumbersome if all you want to do is preserve the folder structure of what you are copying, but if the dest is a relative path then you must also make it absolute as well so that it isn't affected by cwd. Overall that results in more verbose and confusing code.
There should be an option that will preserve the folder structure of all copied sources into the destination without having the specify cwd.
Currently the only way to preserve the folder structure from the sources is to specify
cwdto the parent of the source andparents: true.This is already a bit cumbersome if all you want to do is preserve the folder structure of what you are copying, but if the dest is a relative path then you must also make it absolute as well so that it isn't affected by
cwd. Overall that results in more verbose and confusing code.There should be an option that will preserve the folder structure of all copied sources into the destination without having the specify
cwd.