mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 19:11:33 +00:00
improved save path error messages for scene, textures and audio, fixes #1514
This commit is contained in:
parent
87c51b6fc0
commit
2dfa1279ea
6 changed files with 61 additions and 9 deletions
|
|
@ -399,6 +399,15 @@ Error DirAccess::copy(String p_from,String p_to) {
|
|||
return err;
|
||||
}
|
||||
|
||||
bool DirAccess::exists(String p_dir) {
|
||||
|
||||
DirAccess* da = DirAccess::create_for_path(p_dir);
|
||||
bool valid = da->change_dir(p_dir)==OK;
|
||||
memdelete(da);
|
||||
return valid;
|
||||
|
||||
}
|
||||
|
||||
DirAccess::DirAccess(){
|
||||
|
||||
_access_type=ACCESS_FILESYSTEM;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue