Function rcutils_mkdir

Function Documentation

bool rcutils_mkdir(const char *abs_path)

Create the specified directory.

This function creates an absolutely-specified directory. If any of the intermediate directories do not exist, this function will return False. If the abs_path already exists, and is a directory, this function will return true.

This function is not thread-safe due to mkdir races as described in the openat(2) documentation.

Parameters:

abs_path[in]

Returns:

true if making the directory was successful, or

Returns:

false if path is NULL, or

Returns:

false if path is empty, or

Returns:

false if path is not absolute, or

Returns:

false if any intermediate directories don’t exist.