Sha256: 5c0a923a689293fa254eaa7458892bd8fc5bbf8b7ca7b9fb644737d2c5ae7650
Contents?: true
Size: 632 Bytes
Versions: 2
Compression:
Stored size: 632 Bytes
Contents
# this method deletes a record def deletegutenbergrecord require 'fileutils' if ! @a_viewgutenberg.empty? fileName = $rwdgutenberg_directory + "/" + @a_viewgutenberg + ".lnk" begin # exception trapped block if File.exist?(fileName) File.delete(fileName) end #gutenbergrecordsresult = "" @gutenbergfilechangeresult = "File Deleted!" rescue @gutenbergfilechangeresult = "File Deletion error" $rwdtinkerlog.error "deletegutenbergrecord: File Deletion error" end # exception rescue end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rwdgutenberg-0.13 | code/superant.com.gutenberg/deletegutenbergrecord.rb |
rwdgutenberg-0.12 | code/superant.com.gutenberg/deletegutenbergrecord.rb |