class Dir
- Dir
- Reference
- Object
Overview
Objects of class Dir
are directory streams representing directories in the underlying file system.
They provide a variety of ways to list directories and their contents.
The directory used in these examples contains the two regular files (config.h
and main.rb
),
the parent directory (..
), and the directory itself (.
).
See also: File
.
Included Modules
- Enumerable(String)
- Iterable(String)
Defined in:
dir_walker.crClass Method Summary
-
.find(*dirs : String, sort_proc = Walker::DEFAULT_SORT_PROC, ignore_error = false, &block : String -> )
shortcut or alias for
Dir::Walker::walk
-
.prune_path
shortcut or alias for
Dir::Walker.prune_path
Class Method Detail
def self.find(*dirs : String, sort_proc = Walker::DEFAULT_SORT_PROC, ignore_error = false, &block : String -> )
#
shortcut or alias for Dir::Walker::walk