MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / fs_get_cache_file

Function fs_get_cache_file

smallthinker/common/common.cpp:873–881  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

871}
872
873std::string fs_get_cache_file(const std::string & filename) {
874 GGML_ASSERT(filename.find(DIRECTORY_SEPARATOR) == std::string::npos);
875 std::string cache_directory = fs_get_cache_directory();
876 const bool success = fs_create_directory_with_parents(cache_directory);
877 if (!success) {
878 throw std::runtime_error("failed to create cache directory: " + cache_directory);
879 }
880 return cache_directory + filename;
881}
882
883
884//

Callers 2

common_get_hf_fileFunction · 0.85

Calls 3

findMethod · 0.80
fs_get_cache_directoryFunction · 0.70

Tested by

no test coverage detected