MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / getHomeDirectory

Function getHomeDirectory

src/backend/common/util.cpp:156–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155#else
156string getHomeDirectory() {
157 string home = getEnvVar("XDG_CACHE_HOME");
158 if (!home.empty()) { return home; }
159
160 home = getEnvVar("HOME");
161 if (!home.empty()) { return home; }
162
163 return getpwuid(getuid())->pw_dir;
164}
165#endif
166
167bool directoryExists(const string& path) {

Callers 1

util.cppFile · 0.85

Calls 1

getEnvVarFunction · 0.85

Tested by

no test coverage detected