cmakepp_lang/utilities/directory_exists

cmakepp_lang/utilities/directory_exists.cpp_directory_exists(result dir)

Determines if a provided path points to an existing directory.

Parameters:
  • result (bool*) – Name for variable which will hold the result.

  • dir (path) – Path which may be pointing to an existing directory.

Returns:

result will be set to TRUE if dir is the absolute path of a directory and FALSE otherwise. Of note if dir is the absolute path to a file the result is also FALSE.

Return type:

bool*

Variables:

CMAKEPP_LANG_DEBUG_MODE (bool) – Used to determine if CMakePP is being run in debug mode or not.

Error Checking

If CMakePP is run in debug mode cpp_directory_exists will assert that it has been called with two arguments and that those arguments are of the correct types.