OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library pub.entrypoint; | 5 library pub.entrypoint; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:pathos/path.dart' as path; | 9 import 'package:path/path.dart' as path; |
10 | 10 |
11 import 'git.dart' as git; | 11 import 'git.dart' as git; |
12 import 'io.dart'; | 12 import 'io.dart'; |
13 import 'lock_file.dart'; | 13 import 'lock_file.dart'; |
14 import 'log.dart' as log; | 14 import 'log.dart' as log; |
15 import 'package.dart'; | 15 import 'package.dart'; |
16 import 'pubspec.dart'; | 16 import 'pubspec.dart'; |
17 import 'sdk.dart' as sdk; | 17 import 'sdk.dart' as sdk; |
18 import 'system_cache.dart'; | 18 import 'system_cache.dart'; |
19 import 'utils.dart'; | 19 import 'utils.dart'; |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 // Skip directories and broken symlinks. | 258 // Skip directories and broken symlinks. |
259 if (!fileExists(file)) return false; | 259 if (!fileExists(file)) return false; |
260 | 260 |
261 var relative = path.relative(file, from: beneath); | 261 var relative = path.relative(file, from: beneath); |
262 if (_BLACKLISTED_FILES.contains(path.basename(relative))) return false; | 262 if (_BLACKLISTED_FILES.contains(path.basename(relative))) return false; |
263 return !path.split(relative).any(_BLACKLISTED_DIRS.contains); | 263 return !path.split(relative).any(_BLACKLISTED_DIRS.contains); |
264 }).toList(); | 264 }).toList(); |
265 }); | 265 }); |
266 } | 266 } |
267 } | 267 } |
OLD | NEW |