| 455 | } //namespace |
| 456 | |
| 457 | String gdre::get_sha256(const String &dir) { |
| 458 | if (dir.is_empty()) { |
| 459 | return ""; |
| 460 | } |
| 461 | auto da = DirAccess::create_for_path(dir); |
| 462 | if (da->dir_exists(dir)) { |
| 463 | return get_sha256_for_dir(dir); |
| 464 | } else if (da->file_exists(dir)) { |
| 465 | return FileAccess::get_sha256(dir); |
| 466 | } |
| 467 | return ""; |
| 468 | } |
| 469 | |
| 470 | String gdre::get_md5(const String &dir, bool ignore_code_signature) { |
| 471 | if (dir.is_empty()) { |
nothing calls this directly
no test coverage detected