Exemplo n.º 1
0
bool file_utils::create_directories(const dynamic_string &path, bool remove_filename)
{
    dynamic_string path_to_create(path);

    full_path(path_to_create);

    if (remove_filename)
    {
        dynamic_string pn, fn;
        split_path(path_to_create.get_ptr(), pn, fn);
        path_to_create = pn;
    }

    return create_directories_from_full_path(path_to_create);
}
Exemplo n.º 2
0
    bool file_utils::create_directories(const char* pPath, bool remove_filename)
    {
        dynamic_string path_to_create(pPath);

        return create_directories(path_to_create, remove_filename);
    }