Method: Cnvrg::Files#revoke_download_file
- Defined in:
- lib/cnvrg/files.rb
#revoke_download_file(project_home, absolute_path, filename, conflict = false) ⇒ Object
909 910 911 912 913 914 915 916 917 918 919 |
# File 'lib/cnvrg/files.rb', line 909 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 |