def _paste
      if perms_for(from_hash(@params[:dst]))[:write] == false
        @response[:error] = 'Access Denied'
        return
      end

      added_list = []
      removed_list = []
      @targets.to_a.each do |src|
        if perms_for(src)[:read] == false || (@params[:cut].to_i > 0 && perms_for(src)[:locked] == true)
          @response[:error] ||= 'Some files were not moved.'
          @response[:errorData][src.basename.to_s] = "Access Denied"
          return
        else
          dst = from_hash(@params[:dst]) + src.basename
          if dst.exist?
            @response[:error] ||= 'The target file already exists'
            @response[:errorData][src.basename.to_s] = "already exists in '#{dst.dirname}'"
          else
            if @params[:cut].to_i > 0
              adapter.move(src, dst)

              added_list.push cdc_for(dst)
              removed_list.push to_hash(src)
            else
              command_not_implemented
              return
            end
          end
        end
      end

      @response[:added] = added_list unless added_list.empty?
      @response[:removed] = removed_list unless removed_list.empty?
    end
def _paste
      if perms_for(from_hash(@params[:dst]))[:write] == false
        @response[:error] = 'Access Denied'
        return
      end

      added_list = []
      removed_list = []
      @targets.to_a.each do |src|
        if perms_for(src)[:read] == false || (@params[:cut].to_i > 0 && perms_for(src)[:locked] == true)
          @response[:error] ||= 'Some files were not moved.'
          @response[:errorData][src.basename.to_s] = "Access Denied"
          return
        else
          dst = from_hash(@params[:dst]) + src.basename
          if dst.exist?
            @response[:error] ||= 'The target file already exists'
            @response[:errorData][src.basename.to_s] = "already exists in '#{dst.dirname}'"
          else
            if @params[:cut].to_i > 0
              adapter.move(src, dst)

              added_list.push cdc_for(dst)
              removed_list.push to_hash(src)
            else
              command_not_implemented
              return
            end
          end
        end
      end

      @response[:added] = added_list unless added_list.empty?
      @response[:removed] = removed_list unless removed_list.empty?
    end
of ping