| 111 | } |
| 112 | |
| 113 | static 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 | |
| 127 | static bool is_hex(wint_t c) |
| 128 | { |