Sha256: 045abf5957a1c535702944b2ebad0117bf1251b185ac39d38a9db933a25bd126
Contents?: true
Size: 540 Bytes
Versions: 11
Compression:
Stored size: 540 Bytes
Contents
# this method deletes a file def deleteicseventrecord require 'fileutils' if @a_viewicsevent $currenticseventtext = @a_viewicsevent end begin # exception trapped block fileName = $rwdschedule_directory + "/" + $currenticseventtext + ".ics" File.delete(fileName) @eventicsfilechangeresult = "#{$currenticseventtext} File Deleted!" rescue @eventicsfilechangeresult = "File Deletion error" end # exception rescue end
Version data entries
11 entries across 11 versions & 2 rubygems