| Index: sdk/lib/_internal/pub_generated/lib/src/package.dart
|
| diff --git a/sdk/lib/_internal/pub_generated/lib/src/package.dart b/sdk/lib/_internal/pub_generated/lib/src/package.dart
|
| index 73b5b05aac946805fa9fa4a22f022ee66b9924f2..64d89b06d78534a3bcb9803435c08b6e99d25346 100644
|
| --- a/sdk/lib/_internal/pub_generated/lib/src/package.dart
|
| +++ b/sdk/lib/_internal/pub_generated/lib/src/package.dart
|
| @@ -70,7 +70,12 @@ class Package {
|
| static final _blacklistedFiles = createFileFilter(['pubspec.lock']);
|
| static final _blacklistedDirs = createDirectoryFilter(['packages']);
|
| List<String> listFiles({String beneath, recursive: true}) {
|
| - if (beneath == null) beneath = dir;
|
| + if (beneath == null) {
|
| + beneath = dir;
|
| + } else {
|
| + beneath = path.join(dir, beneath);
|
| + }
|
| + if (!dirExists(beneath)) return [];
|
| var files;
|
| if (git.isInstalled && dirExists(path.join(dir, '.git'))) {
|
| var relativeBeneath = path.relative(beneath, from: dir);
|
|
|