create methods for copy files and directories