module Kosmos
  module PackageDsl
    def merge_directory(from, opts = {})
      destination = opts[:into] || '.'

      FileUtils.cp_r(File.join(self.class.download_dir, from),
        File.join(self.class.ksp_path, destination))
    end
  end
end

module Kosmos
  module PackageDsl
    def merge_directory(from, opts = {})
      destination = opts[:into] || '.'

      FileUtils.cp_r(File.join(self.class.download_dir, from),
        File.join(self.class.ksp_path, destination))
    end
    def remove_filepath(filepath)
      FileUtils.rm_r(File.join(self.class.ksp_path, filepath))
    end
  end
end

Add support to remove file or path
Add support to remove file or path
