cmakepp_lang/utilities/file_exists
- cmakepp_lang/utilities/file_exists.cpp_file_exists(result file)
Determines if a provided path points to an existing file.
- Parameters:
result (desc) – Name for variable which will hold the result.
file (path) – Path which may be pointing to an existing file.
- Returns:
resultwill be set toTRUEiffileis the absolute path of a file andFALSEotherwise. Of note iffileis the absolute path to a directory the result is alsoFALSE.- 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_file_existswill assert that it has been called with two arguments and that those arguments are of the correct types.