# File lib/gio2.rb, line 81
  def each(cancellable = nil)
    return self.enum_for unless block_given?
    while file = next_file(cancellable)
      yield file
    end
    close
    self
  end