# File nqxml/uri.rb, line 129 def fetchFTP # Split path into '/', directory-path, '/', file @path =~ /\(.*)\(.*)$/ dir, file = $1, $2 # (Port ignored) ftp = Net::FTP.new(@host, @username, @password) # Read data. We read into /dev/null but at the same time capture # the bytes into a string. data = '' ftp.getbinaryfile(file, '/dev/null') { | bytes | data << bytes } ftp.finish() return data end