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

Function GetBasenameUnix

AdaptixClient/Source/Utils/FileSystem.cpp:27–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27QString GetBasenameUnix(const QString& path)
28{
29 if (path == "/")
30 return path;
31
32 QStringList pathParts = path.split("/", Qt::SkipEmptyParts);
33 if (pathParts.isEmpty())
34 return "/";
35 return pathParts[pathParts.size()-1];
36}
37
38
39QString GetRootPathWindows(const QString& path)

Callers 1

CreateBrowserFileDataMethod · 0.85

Calls 2

isEmptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected