MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / change_dir

Method change_dir

platform/android/dir_access_jandroid.cpp:165–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165Error DirAccessJAndroid::change_dir(String p_dir) {
166 String new_dir = get_absolute_path(p_dir);
167 if (new_dir == current_dir) {
168 return OK;
169 }
170
171 if (!dir_exists(new_dir)) {
172 return ERR_INVALID_PARAMETER;
173 }
174
175 current_dir = new_dir;
176 return OK;
177}
178
179String DirAccessJAndroid::get_absolute_path(String p_path) {
180 if (current_dir != "" && p_path == current_dir) {

Callers 6

remove_dir_recursiveFunction · 0.45
export_projectMethod · 0.45
export_projectMethod · 0.45
move_to_trashMethod · 0.45
export_projectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected