I have script:
find ./SourceFolder/ -maxdepth 4 -exec cp -R '{}' ./DestFolder/ \;
SourceDir contains also sub-folders.
Problem that in DestFolder not only all tree, but in up level all another levels and files.
How to fix ?
I have script:
find ./SourceFolder/ -maxdepth 4 -exec cp -R '{}' ./DestFolder/ \;
SourceDir contains also sub-folders.
Problem that in DestFolder not only all tree, but in up level all another levels and files.
How to fix ?
cp -r ./SourceFolder ./DestFolder
cp is not a bash command but a separate executable, so it is system-specific. True bash commands on the other hand are the same across operating systems.cp -r "$CONFIG_PATH/" "$CODESIGNING_FOLDER_PATH"SourceFolder in DestFolder?also try this cp -r ./dist/* ./out;
this command will copy dist/* files to out dir;
You might find it handy to keep your attributes set
cp -arf ./SourceFolder ./DestFolder
cp -arf ... throws the error "cp: the -R and -r options may not be specified together." Changing it to cp -af ... solves it. I'm not sure if it's a typo on your end of if cp -arf ... actually worked for you, but I hope this helps in case anyone is getting the same error. Reference: stackoverflow.com/a/32695418/5810737