files library

Constants

reportDirectories → const List<String>
Directories the import report reads on top of standardDirectories.
standardDirectories → const List<String>
The directories the sorter walks. Anything else is left alone.

Functions

compilePatterns(Iterable<String> patterns, String label) → List<RegExp>
Compiles patterns as regular expressions, up front.
dartFiles(String currentPath, List<String> args, {List<String> extraDirectories = const []}) → Map<String, File>
Returns all dart files found in standardDirectories, plus any extraDirectories.
filesNamed(String currentPath, String dir, String name) → List<File>
Every file called name under <currentPath>/<dir>, found by the walk dartFiles uses — so no link is followed, and hidden directories and a package's build/ output are skipped. The report finds sub-package pubspecs with it: a walk of its own that followed links went through a Flutter app's .plugin_symlinks/ into the pub cache.
toPosix(String path) → String
path with Windows separators rewritten as /.