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

Function GetRootPathUnix

AdaptixClient/Source/Utils/FileSystem.cpp:59–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59QString GetRootPathUnix(const QString& path)
60{
61 if (path == "/")
62 return path;
63
64 int secondSlashIndex = path.indexOf('/', 1);
65 if (secondSlashIndex != -1)
66 return path.left(secondSlashIndex);
67
68 return path;
69}
70
71QString GetParentPathWindows(const QString& path)
72{

Callers 1

CreateBrowserFileDataMethod · 0.85

Calls 2

indexOfMethod · 0.45
leftMethod · 0.45

Tested by

no test coverage detected