class Dir

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

Defined in:

xattr.cr

Instance methods inherited from module FileDirXattrMethods

getxattr(name : String, no_follow = false) getxattr, listxattr(no_follow = false) listxattr, removexattr(name : String, no_follow = false) removexattr, setxattr(name : String, value, no_follow = false, only_create = false, only_replace = false) setxattr