Sha256: 01f3eac7028edf286afe788e87a1e933e754f36eb6f78b44b337e06b9d581da8

Contents?: true

Size: 671 Bytes

Versions: 1

Compression:

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

1 entries across 1 versions & 1 rubygems

Version Path
rwdschedule-0.92 code/superant.com.schedule/deleterwdscheduleupdatefiles.rb