Skip to content

rcpputils::fs::create_directories doesn't check if an existing path is a directory #94

@christophebedard

Description

@christophebedard

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.

if (!p_built.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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions