Copy files and folders based on certain rules.