Sha256: b9da73f1bd0623e4cb7a50d247252eb72645ff74169836b3b97cd7c616c0ec9f

Contents?: true

Size: 695 Bytes

Versions: 5

Compression:

Stored size: 695 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

5 entries across 5 versions & 1 rubygems

Version Path
rwdaddresses-0.97 code/superant.com.rwdaddresses/deleterwdaddressesupdatefiles.rb
rwdaddresses-0.99 code/superant.com.rwdaddresses/deleterwdaddressesupdatefiles.rb
rwdaddresses-0.98 code/superant.com.rwdaddresses/deleterwdaddressesupdatefiles.rb
rwdaddresses-0.95 code/superant.com.rwdaddresses/deleterwdaddressesupdatefiles.rb
rwdaddresses-1.01 code/superant.com.rwdaddresses/deleterwdaddressesupdatefiles.rb