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