| 146 | } |
| 147 | |
| 148 | String DirAccessJAndroid::get_current_dir(bool p_include_drive) const { |
| 149 | String base = _get_root_path(); |
| 150 | String bd = current_dir; |
| 151 | if (!base.is_empty()) { |
| 152 | bd = current_dir.replace_first(base, ""); |
| 153 | } |
| 154 | |
| 155 | String root_string = _get_root_string(); |
| 156 | if (bd.begins_with(root_string)) { |
| 157 | return bd; |
| 158 | } else if (bd.begins_with("/")) { |
| 159 | return root_string + bd.substr(1); |
| 160 | } else { |
| 161 | return root_string + bd; |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | Error DirAccessJAndroid::change_dir(String p_dir) { |
| 166 | String new_dir = get_absolute_path(p_dir); |
no test coverage detected