Fixed bug in make_dir_recursive, closes #6016
(cherry picked from commit df6dbadc3e
)
This commit is contained in:
parent
229b172977
commit
58556f5f95
@ -1936,6 +1936,13 @@ Error _Directory::make_dir(String p_dir){
|
|||||||
Error _Directory::make_dir_recursive(String p_dir){
|
Error _Directory::make_dir_recursive(String p_dir){
|
||||||
|
|
||||||
ERR_FAIL_COND_V(!d,ERR_UNCONFIGURED);
|
ERR_FAIL_COND_V(!d,ERR_UNCONFIGURED);
|
||||||
|
if (!p_dir.is_rel_path()) {
|
||||||
|
DirAccess *d = DirAccess::create_for_path(p_dir);
|
||||||
|
Error err = d->make_dir_recursive(p_dir);
|
||||||
|
memdelete(d);
|
||||||
|
return err;
|
||||||
|
|
||||||
|
}
|
||||||
return d->make_dir_recursive(p_dir);
|
return d->make_dir_recursive(p_dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user