allows method

bool allows(
  1. FileAction action,
  2. String path, {
  3. bool subtree = false,
})

Implementation

bool allows(FileAction action, String path, {bool subtree = false}) {
  validateFilePath(path);
  return paths.any((rule) => rule.allows(action, path, subtree: subtree));
}