Close dir

Purpose: Close directory that was opened previously to read its entries.

close-dir <dir id> [ status <status> ]

close-dir will close the directory stream <dir id> opened with open-dir, which is used to read the list of entries in a directory.

If not closed, all directory streams will be automatically closed when the request ends.

Status <status> (in "status" clause) is RIM_OKAY if successfully closed or RIM_ERR_CLOSE on error (in which case you can use "errno" clause in get-req to find the specific reason why).
Examples
See read-dir.
See also
Directories
change-dir  
change-mode  
close-dir  
delete-dir  
directories  
new-dir  
open-dir  
read-dir  
See all
documentation


Copyright (c) 2019-2025 Gliim LLC. All contents on this web site is "AS IS" without warranties or guarantees of any kind.