Browse Source

Avoid canonicalization

main
Cédric Belin 3 months ago
parent
commit
d9d996802a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/src/io/finder.dart

+ 1
- 1
lib/src/io/finder.dart View File

@@ -66,7 +66,7 @@ class Finder {
/// Finds the instances of a [command] in the specified [directory].
Stream<io.File> _findExecutables(String directory, String command) async* {
for (final extension in ["", if (isWindows) ...extensions]) {
final resolvedPath = p.canonicalize("${p.join(directory, command)}${extension.toLowerCase()}");
final resolvedPath = p.absolute("${p.join(directory, command)}${extension.toLowerCase()}");
if (await isExecutable(resolvedPath)) yield io.File(resolvedPath);
}
}


Loading…
Cancel
Save