Method: Cnvrg::Files#revoke_download

Defined in:
lib/cnvrg/files.rb

#revoke_download(conflicted_changes, downloaded_changes) ⇒ Object



845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
# File 'lib/cnvrg/files.rb', line 845

def revoke_download(conflicted_changes,downloaded_changes)
  begin
    if !conflicted_changes.nil? and !conflicted_changes.empty?
      conflicted_changes.each do |c|
        # FileUtils.rm_rf(c+".conflict")
      end
    end
    # FileUtils.rm_rf(downloaded_changes) unless (downloaded_changes.nil? or downloaded_changes.empty?)
  rescue => e
    return false
  end

  return true

end