# this code is to list the notes def filldialogmapnameh(inffile) applet = inffile @a_viewdialogmaphtml = applet end def finddialogmapfilesh(d,notesarray) a = Array.new(Dir[d].entries.sort) #loop through and get the files names a.each do |x| #adjust the filters to the files you want to see... if(!test(?d,x)) # only txt files if x =~ /htm|html|lnk|rwd|nam|sch|txt/ # puts "#{x}" #opens the file thats in fileName as read only notesarray = notesarray | ["#{x}"] end end end return notesarray end def listdialogmapdirshtml if $temp_rwddialogmap_directory.to_s.empty? startlangdir = $rwddialogmap_directory else startlangdir = $temp_rwddialogmap_directory end @dialogmap_directory = startlangdir notesarray = [""] #get a list of the files and subdirectories on the starting directory only anotearray = Array.new(Dir[startlangdir].entries.sort) #loop through the list, ignore the files and add all new directories found anotearray.each do |x| #if it is a file... if(!test(?d,x)) anotearray.delete(x) else #it is a directory... notesarray = finddialogmapfilesh(x + "/**",notesarray) end end @sagdialogmaprecordsresulth = notesarray.entries.sort.rwd_method("filldialogmapnameh") end