MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / GetConfigPath

Function GetConfigPath

cppcryptfsctl/cppcryptfsctl.cpp:113–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113static void GetConfigPath(wstring& path)
114{
115 if (::PathIsDirectory(path.c_str())) {
116 if (path[path.length() - 1] != L'\\') {
117 path += L"\\";
118 }
119 if (::PathFileExists((path + L"gocryptfs.conf").c_str())) {
120 path += L"gocryptfs.conf";
121 } else if (::PathFileExists((path + L".gocryptfs.reverse.conf").c_str())) {
122 path += L".gocryptfs.reverse.conf";
123 }
124 }
125}
126
127static bool is_hex(wint_t c)
128{

Callers 1

do_self_argsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected