Method: Cnvrg::Files#delete_conflict

Defined in:
lib/cnvrg/files.rb

#delete_conflict(file) ⇒ Object



903
904
905
906
907
# File 'lib/cnvrg/files.rb', line 903

def delete_conflict(file)
  file = "#{@project_home}/#{file}" unless File.exists? file
  return unless File.exists? file
  File.rename(file, "#{file}.deleted")
end