MCPcopy Create free account
hub / github.com/blender/cycles / path_cache_get

Function path_cache_get

src/util/path.cpp:360–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360string path_cache_get(const string &sub)
361{
362#if defined(__linux__) || defined(__APPLE__)
363 if (cached_xdg_cache_path.empty()) {
364 cached_xdg_cache_path = path_xdg_cache_get();
365 }
366 const string result = path_join(cached_xdg_cache_path, "cycles");
367 return path_join(result, sub);
368#else
369 /* TODO(sergey): What that should be on Windows? */
370 return path_user_get(path_join("cache", sub));
371#endif
372}
373
374#if defined(__linux__) || defined(__APPLE__)
375string path_xdg_home_get(const string &sub = "");

Callers 3

compile_kernelMethod · 0.85
compile_kernelMethod · 0.85
compile_kernelMethod · 0.85

Calls 4

path_xdg_cache_getFunction · 0.85
path_joinFunction · 0.85
path_user_getFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected