support for copying whole directories added to the local and remote servers