Method: Cnvrg::Files#revoke_download_file
- Defined in:
- lib/cnvrg/files.rb
#revoke_download_file(project_home, absolute_path, filename, conflict = false) ⇒ Object
612 613 614 615 616 617 618 619 620 621 622 |
# File 'lib/cnvrg/files.rb', line 612 def revoke_download_file(project_home, absolute_path, filename, conflict=false) begin file_location = absolute_path.gsub(/#{filename}\/?$/, "") filename += ".conflict" if conflict FileUtils.remove("#{file_location}/#{filename}") return true rescue return false end end |