isProtectedPath method

bool isProtectedPath(
  1. String path
)

Whether the given path is a protected system path.

Implementation

bool isProtectedPath(String path) {
  final normalized = _normalizePath(path);
  for (final protectedPath in _protectedPaths) {
    if (normalized == protectedPath ||
        normalized.startsWith('$protectedPath/')) {
      return true;
    }
  }
  return false;
}