Extension for recursively copying files and directories