method
preorder_traverse
preorder_traverse()
public
Hide source
# File lib/fileutils.rb, line 1338 def preorder_traverse stack = [self] while ent = stack.pop yield ent stack.concat ent.entries.reverse if ent.directory? end end