Method: FtpD8a#each

Defined in:
lib/d8a/ftpd8a.rb

#eachObject



103
104
105
106
107
108
109
110
111
112
113
# File 'lib/d8a/ftpd8a.rb', line 103

def each
  ensure_ftp
  dir = [""]
  @ftpcache = {}
  @ftp.list("-R") do |line|
    if (x = @ls_parser.call(line, dir)).is_a?(Hash)
      @ftpcache[x[:name]] = x
      yield x[:name]
    end
  end
end