FileSet.fromDir constructor

FileSet.fromDir(
  1. Directory dir, {
  2. String? pattern,
  3. bool recurse = false,
})

Implementation

FileSet.fromDir(Directory dir, {String? pattern, bool recurse = false}) {
  final glob = (pattern == null ? null : Glob(pattern));

  if (dir.existsSync()) {
    _collect(files, dir, glob, recurse);
  }
}