MCPcopy Create free account
hub / github.com/Adaptix-Framework/AdaptixC2 / GetProjectDir

Method GetProjectDir

AdaptixClient/Source/Client/AuthProfile.cpp:24–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22QString AuthProfile::GetProject() { return this->project; };
23
24QString AuthProfile::GetProjectDir() const
25{
26 QString dirPath = this->projectDir.trimmed();
27 if (dirPath.isEmpty()) {
28 QDir home(QDir::homePath());
29 QString basePath = home.filePath("AdaptixProjects");
30 QDir baseDir(basePath);
31 dirPath = baseDir.filePath(this->project.trimmed());
32 }
33
34 QDir().mkpath(dirPath);
35 return dirPath;
36}
37
38QString AuthProfile::GetUsername() { return this->username; };
39

Callers 15

eventFilterMethod · 0.80
actionSyncMethod · 0.80
onExportCredsMethod · 0.80
onUploadMethod · 0.80
onExportTargetMethod · 0.80
actionDownloadMethod · 0.80
onActionLoadMethod · 0.80
onButtonLoadMethod · 0.80
onButtonSaveMethod · 0.80
onBuildMessageMethod · 0.80
onButtonLoadMethod · 0.80

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected