MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / removeProject

Method removeProject

src/plugins/container/container.cpp:145–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145ContainerError Container::removeProject(const QString &projectPath)
146{
147 qInfo() << __FUNCTION__;
148 ContainerError error;
149 pathUuidMap.remove(projectPath);
150
151 auto cachePath = CustomPaths::user(CustomPaths::Flags::Configures);
152 QFile containersUuid(cachePath + QDir::separator() + QString{"containers"});
153 if (containersUuid.exists()) {
154 // sed '/parten/d' containers.uuid
155 QString args = "/" + projectPath.split("/").last() + "/d";
156 ProcessUtil::execute("sed", QStringList{args, QString{"containers"} });
157 }
158 containersUuid.close();
159
160 return error;
161}
162
163ContainerError Container::execContainerCommand(const QString &projectPath, const QString &text)
164{

Callers

nothing calls this directly

Calls 3

removeMethod · 0.45
existsMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected