subdir_exists()
#
Checks if a given subdirectory exists within a specified directory.
Prototype
BOOL subdir_exists(
const char *directory,
const char *subdir
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The path of the parent directory. |
|
|
The name of the subdirectory to check. |
Return Value
Returns TRUE
if the subdirectory exists, otherwise returns FALSE
.
Notes
This function constructs the full path of the subdirectory and verifies its existence using is_directory()
.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples