MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / get_md5

Method get_md5

utility/common.cpp:470–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

468}
469
470String gdre::get_md5(const String &dir, bool ignore_code_signature) {
471 if (dir.is_empty()) {
472 return "";
473 }
474 auto da = DirAccess::create_for_path(dir);
475 if (da->dir_exists(dir)) {
476 return get_md5_for_dir(dir, ignore_code_signature);
477 } else if (da->file_exists(dir)) {
478 return FileAccess::get_md5(dir);
479 }
480 return "";
481}
482
483String gdre::get_md5_for_dir(const String &dir, bool ignore_code_signature) {
484 auto paths = Glob::rglob(dir.path_join("**/*"), true);

Callers 3

_pck_file_check_md5Method · 0.45
_do_md5_checkMethod · 0.45
_check_md5_all_filesMethod · 0.45

Calls 2

dir_existsMethod · 0.80
file_existsMethod · 0.45

Tested by

no test coverage detected