FilePathRule constructor

FilePathRule({
  1. required String path,
  2. required bool recursive,
  3. required Iterable<FileAction> actions,
  4. Iterable<String> excludedPaths = const [],
})

Implementation

FilePathRule({
  required String path,
  required this.recursive,
  required Iterable<FileAction> actions,
  Iterable<String> excludedPaths = const [],
}) : path = validateFilePath(path),
     actions = Set.unmodifiable(actions),
     excludedPaths = List.unmodifiable(excludedPaths.map(validateFilePath)) {
  if (this.excludedPaths.length > 1000) throw ArgumentError('Too many file policy exclusions');
}