MCPcopy Create free account
hub / github.com/Selectively11/CloudRedirect / isPathWithin

Function isPathWithin

ui-linux/src/backend.cpp:57–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57static bool isPathWithin(const QString &root, const QString &path)
58{
59 QString cleanRoot = QDir::cleanPath(root);
60 QString cleanPath = QDir::cleanPath(path);
61 return cleanPath == cleanRoot || cleanPath.startsWith(cleanRoot + "/");
62}
63
64// Internal Steam app IDs that should not be shown in the UI
65static const QSet<uint> kHiddenAppIds = { 7, 760, 2371090 };

Callers 2

restoreBackupMethod · 0.85
deleteBackupMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected