# File class/main.rb, line 88 def upload_files(files) if @transmode begin @ftp.open files.each { |file, rpath| begin @ftp.chdir(rpath) rescue puts $! @ftp.mkdir(rpath) @ftp.chdir(rpath) end @ftp.put(file) @date_data.update(file) } ensure @ftp.close end else files.each {|file, rpath| @date_data.update(file)} end end