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

Version Path
bigtinker-0.98 code/superant.com.schedule/deleterwdscheduleupdatefiles.rb
bigtinker-0.95 code/superant.com.schedule/deleterwdscheduleupdatefiles.rb
rwdschedule-0.07 code/superant.com.schedule/deleterwdscheduleupdatefiles.rb
rwdschedule-1.01 code/superant.com.schedule/deleterwdscheduleupdatefiles.rb
rwdschedule-0.98 code/superant.com.schedule/deleterwdscheduleupdatefiles.rb
rwdschedule-0.93 code/superant.com.schedule/deleterwdscheduleupdatefiles.rb
rwdschedule-0.94 code/superant.com.schedule/deleterwdscheduleupdatefiles.rb
rwdschedule-0.95 code/superant.com.schedule/deleterwdscheduleupdatefiles.rb
rwdschedule-1.02 code/superant.com.schedule/deleterwdscheduleupdatefiles.rb
rwdschedule-0.97 code/superant.com.schedule/deleterwdscheduleupdatefiles.rb
rwdschedule-1.00 code/superant.com.schedule/deleterwdscheduleupdatefiles.rb
rwdschedule-0.99 code/superant.com.schedule/deleterwdscheduleupdatefiles.rb
rwdschedule-0.96 code/superant.com.schedule/deleterwdscheduleupdatefiles.rb