MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / fs_get_cache_file

Function fs_get_cache_file

subprojects/llama.cpp/common/common.cpp:934–942  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

932}
933
934std::string fs_get_cache_file(const std::string & filename) {
935 GGML_ASSERT(filename.find(DIRECTORY_SEPARATOR) == std::string::npos);
936 std::string cache_directory = fs_get_cache_directory();
937 const bool success = fs_create_directory_with_parents(cache_directory);
938 if (!success) {
939 throw std::runtime_error("failed to create cache directory: " + cache_directory);
940 }
941 return cache_directory + filename;
942}
943
944std::vector<common_file_info> fs_list(const std::string & path, bool include_directories) {
945 std::vector<common_file_info> files;

Callers 4

get_manifest_pathFunction · 0.85

Calls 3

fs_get_cache_directoryFunction · 0.70
findMethod · 0.65

Tested by

no test coverage detected