root
Depending on the implementation, the absolute path to the created directory, the native open file descriptor, or a native file handle. Do not close the provided file descriptor yourself, as it will lead to incorrect behavior.
On POSIX-compatible filesystems, consider using the dup()
system call to duplicate the descriptor to use with functions like fopendir()
.
The descriptor is closed when close is called.