| 260 | } |
| 261 | |
| 262 | bool dir_exists(const String &path, bool include_hidden = false) { |
| 263 | String basename = get_file_name(path); |
| 264 | Ref<DirAccess> da = DirAccess::open(get_real_base_dir(path)); |
| 265 | if (da.is_null()) { |
| 266 | return false; |
| 267 | } |
| 268 | da->set_include_hidden(include_hidden); |
| 269 | if ((da->dir_exists(basename))) { |
| 270 | return true; |
| 271 | } |
| 272 | return false; |
| 273 | } |
| 274 | |
| 275 | bool dir_or_file_exists(const String &path, bool include_hidden = false) { |
| 276 | String basename = get_file_name(path); |
no test coverage detected