isPathTrusted method
Implementation
bool isPathTrusted(String dir) {
final config = getGlobalConfig();
var currentPath = _normalizePathForConfigKey(p.canonicalize(dir));
while (true) {
if (config.projects?[currentPath]?.hasTrustDialogAccepted == true) {
return true;
}
final parentPath = _normalizePathForConfigKey(
p.canonicalize(p.join(currentPath, '..')),
);
if (parentPath == currentPath) return false;
currentPath = parentPath;
}
}