def copy_move_single(self, dest_path, is_move):
if self.provider.readonly:<EOL><INDENT>raise DAVError(HTTP_FORBIDDEN)<EOL><DEDENT>fpDest = self.provider._loc_to_file_path(dest_path, self.environ)<EOL>assert not util.is_equal_or_child_uri(self.path, dest_path)<EOL>if not os.path.exists(fpDest):<EOL><INDENT>os.mkdir(fpDest)<EOL><DEDENT>try:<EOL><INDENT>shutil.copystat(self._file_path, fpDest)<EOL><DEDENT>except Exception:<EOL><INDENT>_logger.exception("<STR_LIT>".format(self._file_path))<EOL><DEDENT>propMan = self.provider.prop_manager<EOL>if propMan:<EOL><INDENT>destRes = self.provider.get_resource_inst(dest_path, self.environ)<EOL>if is_move:<EOL><INDENT>propMan.move_properties(<EOL>self.get_ref_url(),<EOL>destRes.get_ref_url(),<EOL>with_children=False,<EOL>environ=self.environ,<EOL>)<EOL><DEDENT>else:<EOL><INDENT>propMan.copy_properties(<EOL>self.get_ref_url(), destRes.get_ref_url(), self.environ<EOL>)<EOL><DEDENT><DEDENT>
See DAVResource.copy_move_single()