@@ -73,14 +73,12 @@ class PathExplorer {
7373 final s = recurse (path, () => temp! );
7474 temp = DirPathExplorerFinding ._(
7575 path: path,
76- files:
77- s
78- .where ((e) => e is FilePathExplorerFinding )
79- .cast <FilePathExplorerFinding >(),
80- dirs:
81- s
82- .where ((e) => e is DirPathExplorerFinding )
83- .cast <DirPathExplorerFinding >(),
76+ files: s
77+ .where ((e) => e is FilePathExplorerFinding )
78+ .cast <FilePathExplorerFinding >(),
79+ dirs: s
80+ .where ((e) => e is DirPathExplorerFinding )
81+ .cast <DirPathExplorerFinding >(),
8482 parentDir: parentDir,
8583 );
8684 yield temp;
@@ -102,9 +100,7 @@ class PathExplorer {
102100 }
103101
104102 Stream <FileData > readFiles (bool Function (FilePathExplorerFinding ) filter) {
105- return exploreFiles ()
106- .where (filter)
107- .asyncMap (
103+ return exploreFiles ().where (filter).asyncMap (
108104 (a) async => File (a.path).readAsBytes ().then ((b) => FileData (a, b)),
109105 );
110106 }
@@ -138,14 +134,12 @@ class PathExplorer {
138134
139135// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
140136
141- typedef TPathExplorerFindings =
142- Future <
143- ({
144- Set <DirPathExplorerFinding > rootDirPathFindings,
145- Set <DirPathExplorerFinding > dirPathFindings,
146- Set <FilePathExplorerFinding > filePathFindings,
147- })
148- >;
137+ typedef TPathExplorerFindings = Future <
138+ ({
139+ Set <DirPathExplorerFinding > rootDirPathFindings,
140+ Set <DirPathExplorerFinding > dirPathFindings,
141+ Set <FilePathExplorerFinding > filePathFindings,
142+ })>;
149143
150144// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
151145
@@ -266,8 +260,7 @@ sealed class PathExplorerFinding {
266260
267261/// Lists all contents of the given [dirPath] .
268262Stream <String > _normalizedDirContent (String dirPath) async * {
269- final dirPathUri = Uri .parse (dirPath);
270- final dir = Directory .fromUri (dirPathUri);
263+ final dir = Directory (dirPath);
271264 yield * dir.list (recursive: false ).map ((e) => p.normalize (e.path));
272265}
273266
0 commit comments