class Walk::Down

Included Modules

Defined in:

walk/down.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(path : Path) #

Creates iterator.


[View source]
def self.new(path : String) #

[View source]

Instance Method Detail

def current : Path | Nil #

[View source]
def current=(current : Path | Nil) #

[View source]
def filter(&predicate : Path -> Bool) #

Returns an iterator for pruning the entries in the directory tree.


[View source]
def next #

Returns the next element.


[View source]
def rewind #

Rewinds iterator.


[View source]
def root : Path #

Properties


[View source]
def root=(root : Path) #

Properties


[View source]
def skip #

Skips entry. Similar to #next without descending into directories.


[View source]
def stack : Array(Path) #

[View source]
def stack=(stack : Array(Path)) #

[View source]