bool isHidden(String path, String root) { // trying to infer relative path if (pathlib.relative(path, from: root).startsWith('.')) { return true; } else { return false; } }