1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

improved save path error messages for scene, textures and audio, fixes #1514

This commit is contained in:
Juan Linietsky
2015-04-12 16:45:59 -03:00
parent 87c51b6fc0
commit 2dfa1279ea
6 changed files with 61 additions and 9 deletions

View File

@@ -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;