Sha256: 137cf6b4bea4aa6efd954b0fa9ea16d4bfcb1f298f17c0fce3a0c8fa3c97c716

Contents?: true

Size: 558 Bytes

Versions: 2

Compression:

Stored size: 558 Bytes

Contents

# this method views an existing  record
def deletemovierecord

	require 'fileutils'

	if @a_moviefilename
		$currentmovietext =  @a_moviefilename
	end

	fileName = $rwdmovies_directory + "/" + $currentmovietext + ".nam"


	begin # exception trapped block

		File.delete(fileName)
		fileNamephoto = $rwdmovies_directory + "/" + $currentmovietext + ".jpg"
		if  File.exist?(fileNamephoto)
			File.delete(fileNamephoto)
		end
	rescue SystemCallError, StandardError
		$stderr.print "system call error: " + $!
	end # exception rescue

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rwdmovies-0.95 code/superant.com.rwdmovies/deletemovierecord.rb
rwdmovies-0.94 code/superant.com.rwdmovies/deletemovierecord.rb