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

Method get_sha256

utility/common.cpp:457–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455} //namespace
456
457String 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
470String gdre::get_md5(const String &dir, bool ignore_code_signature) {
471 if (dir.is_empty()) {

Callers

nothing calls this directly

Calls 3

get_sha256_for_dirFunction · 0.85
dir_existsMethod · 0.80
file_existsMethod · 0.45

Tested by

no test coverage detected