HomeManualTopicsTypesSymbols

std::closedir

closes the specified directory stream

Parameter

dir
the directory stream

Results

None

Description

This function needs I/O-access rights.

Example

# display the entries of the current working directory opendir! $dir "." loop: readdir! $entry dir if entry.is_an_error: closedir! dir : println! name_of(entry) next!

Topic

POSIX

See also

std::opendir opens a directory stream
std::readdir reads a directory entry
std_types::directory a POSIX directory