# this code is to list the file data def listtorrentrecordfiles if File.exist?($rwdtorrentfilesdir) fileList = Dir.new($rwdtorrentfilesdir).entries.sort.delete_if { |x| ! (x =~ /torrent$/) } @torrentrecordsresult = fileList.rwd_method("filltorrentrecordname") end end # this method is to help fill in list of names def filltorrentrecordname(inffile) applet = inffile.gsub(/\.torrent$/, "") @a_viewtorrent = applet end