Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(272)

Side by Side Diff: sdk/lib/io/file_system_entity.dart

Issue 589373002: Update watch docs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 part of dart.io; 5 part of dart.io;
6 6
7 /** 7 /**
8 * The type of an entity on the file system, such as a file, directory, or link. 8 * The type of an entity on the file system, such as a file, directory, or link.
9 * 9 *
10 * These constants are used by the [FileSystemEntity] class 10 * These constants are used by the [FileSystemEntity] class
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 * The returned value is an endless broadcast [Stream], that only stops when 411 * The returned value is an endless broadcast [Stream], that only stops when
412 * one of the following happends: 412 * one of the following happends:
413 * 413 *
414 * * The [Stream] is canceled, e.g. by calling `cancel` on the 414 * * The [Stream] is canceled, e.g. by calling `cancel` on the
415 * [StreamSubscription]. 415 * [StreamSubscription].
416 * * The [FileSystemEntity] being watches, is deleted. 416 * * The [FileSystemEntity] being watches, is deleted.
417 * 417 *
418 * Use `events` to specify what events to listen for. The constants in 418 * Use `events` to specify what events to listen for. The constants in
419 * [FileSystemEvent] can be or'ed together to mix events. Default is 419 * [FileSystemEvent] can be or'ed together to mix events. Default is
420 * [FileSystemEvent.ALL]. 420 * [FileSystemEvent.ALL].
421 *
422 * If the system is unable to pair a move-event, the event may be rewritten
Søren Gjesse 2014/09/23 11:21:41 This is a bit out of the blue. There is no mention
Anders Johnsen 2014/09/23 11:30:07 Simplified a bit - no longer any mention to how we
423 * to a delete and create event.
421 */ 424 */
422 Stream<FileSystemEvent> watch({int events: FileSystemEvent.ALL, 425 Stream<FileSystemEvent> watch({int events: FileSystemEvent.ALL,
423 bool recursive: false}) 426 bool recursive: false})
424 => _FileSystemWatcher.watch(_trimTrailingPathSeparators(path), 427 => _FileSystemWatcher.watch(_trimTrailingPathSeparators(path),
425 events, 428 events,
426 recursive); 429 recursive);
427 430
428 Future<FileSystemEntity> _delete({bool recursive: false}); 431 Future<FileSystemEntity> _delete({bool recursive: false});
429 void _deleteSync({bool recursive: false}); 432 void _deleteSync({bool recursive: false});
430 433
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 return buffer.toString(); 809 return buffer.toString();
807 } 810 }
808 } 811 }
809 812
810 813
811 class _FileSystemWatcher { 814 class _FileSystemWatcher {
812 external static Stream<FileSystemEvent> watch( 815 external static Stream<FileSystemEvent> watch(
813 String path, int events, bool recursive); 816 String path, int events, bool recursive);
814 external static bool get isSupported; 817 external static bool get isSupported;
815 } 818 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698