| 377 | } |
| 378 | |
| 379 | Vector<String> glob0(const String &dirname, const String &basename, |
| 380 | bool dironly, bool include_hidden) { |
| 381 | // std::cout << "In glob0\n"; |
| 382 | Vector<String> result; |
| 383 | if (basename.is_empty()) { |
| 384 | // 'q*x/' should match only directories. |
| 385 | if (dir_exists(dirname, include_hidden)) { |
| 386 | result = { basename }; |
| 387 | } |
| 388 | } else { |
| 389 | if (dir_or_file_exists(dirname.path_join(basename), include_hidden)) { |
| 390 | result = { basename }; |
| 391 | } |
| 392 | } |
| 393 | if (!result.is_empty() && dirname.is_absolute_path()) { |
| 394 | result = { basename.is_empty() ? dirname : dirname.path_join(basename) }; |
| 395 | } |
| 396 | return result; |
| 397 | } |
| 398 | |
| 399 | String get_user_home_dir() { |
| 400 | auto ident = OS::get_singleton()->get_identifier(); |
nothing calls this directly
no test coverage detected