Index: sdk/lib/_internal/pub/lib/src/cached_package.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/cached_package.dart b/sdk/lib/_internal/pub/lib/src/cached_package.dart |
index 3dc2323689f05d2129d69dae573afdb05c1837a1..6fac594da38fefdbda99798dba0ce9d757b1612e 100644 |
--- a/sdk/lib/_internal/pub/lib/src/cached_package.dart |
+++ b/sdk/lib/_internal/pub/lib/src/cached_package.dart |
@@ -47,11 +47,15 @@ class CachedPackage extends Package { |
/// This will include the cached, transformed versions of files if [beneath] |
/// is within a cached directory, but not otherwise. |
- List<String> listFiles({String beneath, recursive: true}) { |
- if (beneath == null) return super.listFiles(recursive: recursive); |
+ List<String> listFiles({String beneath, recursive: true, |
+ bool useGitIgnore: false}) { |
+ if (beneath == null) { |
+ return super.listFiles(recursive: recursive, useGitIgnore: useGitIgnore); |
+ } |
if (_pathInCache(beneath)) return listDir(p.join(_cacheDir, beneath)); |
- return super.listFiles(beneath: beneath, recursive: recursive); |
+ return super.listFiles(beneath: beneath, recursive: recursive, |
+ useGitIgnore: useGitIgnore); |
} |
/// Returns whether [relativePath], a path relative to the package's root, |