Build script copy build folder to location

Maybe someone has already solved this.
I want to copy my build folder to a path on a server after the build.
I’m working on MacOS and the destination path is for example:
smb://server/files/development/builds

Thanks

So what is the problem with copying using ditto?

I don’t know what ditto is … google says a clipboard manager?
I want to copy the build folder automated after the build finished via build script.

ditto is a command line command like cp: