Dir class of PicoRuby
Type aliases
path_t
String
Singleton methods
chdir
Dir.chdir(?path_t dir) -> 0
Dir.chdir[U] (?path_t dir) { (path_t dir) -> U } -> U
delete
Dir.delete(path_t dirname) -> 0
entries
Dir.entries(String dir) -> Array[String]
exist?
Dir.exist?(path_t dirname) -> bool
foreach
Dir.foreach(String path) { (String path) -> untyped } -> nil
getwd
Dir.getwd() -> String
glob
Dir.glob(path_t pattern, ?int flags, ?base: path?) -> Array[String]
Dir.glob(path_t pattern, ?int flags, ?base: path?) { (String pathname) -> void } -> nil
mkdir
Dir.mkdir(path_t dirname, ?Integer mode) -> 0
open
Dir.open(path_t dirname) -> untyped
Dir.open[U] (path_t dirname) { (Dir dir) -> U } -> Dir
Instance methods
close
instance.close() -> nil
each
instance.each() { (String item) -> untyped} -> self
empty?
instance.empty?() -> bool
findnext
instance.findnext() -> Dir
pat=
instance.pat=(String) -> String
read
instance.read() -> String?
rewind
instance.rewind() -> self
seek
instance.seek(Integer pos) -> 0
tell
instance.tell() -> Integer