| 163 | } |
| 164 | |
| 165 | Error 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 | |
| 179 | String DirAccessJAndroid::get_absolute_path(String p_path) { |
| 180 | if (current_dir != "" && p_path == current_dir) { |
no outgoing calls
no test coverage detected