Sha256: 13440cecb3bc30296541a67b64a1344e89a0093e1f85d728b5e4934896e06ab3
Contents?: true
Size: 690 Bytes
Versions: 13
Compression:
Stored size: 690 Bytes
Contents
# this code is to delete update files def deleterwdscheduleupdatefiles # exception begin begin fileListarray = Dir.new($rwdschedule_updatedirectory).entries.sort.delete_if { |x| ! (x =~ /sch$/) } #loop through and get the files names fileListarray.each do |x| filetodelete = File.join($rwdschedule_updatedirectory,x) if File.exist?(filetodelete) File.delete(filetodelete) end end @rwdscheduleftpdisplay = "update files deleted" rescue @rwdscheduleftpdisplay = "error opening schedule update directory" end # end of error function end
Version data entries
13 entries across 13 versions & 2 rubygems