OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 watcher.directory_watcher; | 5 library watcher.directory_watcher; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:collection'; | |
9 import 'dart:io'; | 8 import 'dart:io'; |
10 | 9 |
11 import 'package:crypto/crypto.dart'; | 10 import 'package:crypto/crypto.dart'; |
12 | 11 |
13 import 'async_queue.dart'; | 12 import 'async_queue.dart'; |
14 import 'stat.dart'; | 13 import 'stat.dart'; |
15 import 'watch_event.dart'; | 14 import 'watch_event.dart'; |
16 | 15 |
17 /// Watches the contents of a directory and emits [WatchEvent]s when something | 16 /// Watches the contents of a directory and emits [WatchEvent]s when something |
18 /// in the directory has changed. | 17 /// in the directory has changed. |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 | 258 |
260 class _FileStatus { | 259 class _FileStatus { |
261 /// The last time the file was modified. | 260 /// The last time the file was modified. |
262 DateTime modified; | 261 DateTime modified; |
263 | 262 |
264 /// The SHA-1 hash of the contents of the file. | 263 /// The SHA-1 hash of the contents of the file. |
265 List<int> hash; | 264 List<int> hash; |
266 | 265 |
267 _FileStatus(this.modified, this.hash); | 266 _FileStatus(this.modified, this.hash); |
268 } | 267 } |
OLD | NEW |