FileSet.fromDir constructor

FileSet.fromDir(Directory dir, { String pattern, bool recurse: false })

Implementation

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

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