MCPcopy Create free account
hub / github.com/IJHack/QtPass / needsInit

Method needsInit

src/profileinit.cpp:18–24  ·  view source on GitHub ↗

* @brief Check if a profile path is new (doesn't have .gpg-id yet). * @param path The profile path to check. * @return true if the path needs initialization. */

Source from the content-addressed store, hash-verified

16 * @return true if the path needs initialization.
17 */
18auto ProfileInit::needsInit(const QString &path) -> bool {
19 QDir dir(path);
20 if (!dir.exists()) {
21 return false;
22 }
23 return !dir.exists(".gpg-id");
24}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected