MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / workspaceRoot

Method workspaceRoot

app/src/AI/FileSandbox.cpp:82–90  ·  view source on GitHub ↗

* @brief Returns the base workspace directory (read root and ancestor of the write root). */

Source from the content-addressed store, hash-verified

80 * @brief Returns the base workspace directory (read root and ancestor of the write root).
81 */
82QString AI::FileSandbox::workspaceRoot() const
83{
84 const auto base = Misc::WorkspaceManager::instance().path();
85 QDir dir(base);
86 if (!dir.exists())
87 dir.mkpath(QStringLiteral("."));
88
89 return QFileInfo(base).canonicalFilePath();
90}
91
92/**
93 * @brief Returns the 'AI/' write root, creating it if needed.

Callers

nothing calls this directly

Calls 2

existsMethod · 0.80
pathMethod · 0.45

Tested by

no test coverage detected