Calling rcpputils::fs::create_directories on /a/b/c/d, where d is a file and not a directory, will return true (assuming that /a/b/c/ exists) because it only checks that the path exists.
One could simply call is_directory to double check, but looking at the documentation, I don't think that's right:
|
* \return Return true if the directory is created, false otherwise. |