Possible to map a function to copied files

I don’t see anything in the docs, but I am curious about the possibility of mapping a function or something to copied files.

Primarily I’d like to sync bucketA to bucketB but I’d like to have the files compressed in bucketB. So probably more likely a flag than a mapped function.