MCPcopy Create free account
hub / github.com/IJHack/QtPass / normalizeFolderPath

Method normalizeFolderPath

src/util.cpp:94–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94auto Util::normalizeFolderPath(const QString &path) -> QString {
95 QString normalizedPath = path;
96 if (!normalizedPath.endsWith("/") &&
97 !normalizedPath.endsWith(QDir::separator())) {
98 normalizedPath += QDir::separator();
99 }
100 return QDir::toNativeSeparators(normalizedPath);
101}
102
103/**
104 * @brief Finds the absolute path of a binary by searching the PATH environment

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected