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

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

Issue 48593002: Add a note on watching files on Linux. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 7 years, 1 month 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 class FileSystemEntityType { 7 class FileSystemEntityType {
8 static const FILE = const FileSystemEntityType._internal(0); 8 static const FILE = const FileSystemEntityType._internal(0);
9 static const DIRECTORY = const FileSystemEntityType._internal(1); 9 static const DIRECTORY = const FileSystemEntityType._internal(1);
10 static const LINK = const FileSystemEntityType._internal(2); 10 static const LINK = const FileSystemEntityType._internal(2);
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 /** 342 /**
343 * Start watching the [FileSystemEntity] for changes. 343 * Start watching the [FileSystemEntity] for changes.
344 * 344 *
345 * The implementation uses platform-dependent event-based APIs for receiving 345 * The implementation uses platform-dependent event-based APIs for receiving
346 * file-system notifications, thus behavior depends on the platform. 346 * file-system notifications, thus behavior depends on the platform.
347 * 347 *
348 * * `Windows`: Uses `ReadDirectoryChangesW`. The implementation only 348 * * `Windows`: Uses `ReadDirectoryChangesW`. The implementation only
349 * supports watching directories. Recursive watching is supported. 349 * supports watching directories. Recursive watching is supported.
350 * * `Linux`: Uses `inotify`. The implementation supports watching both 350 * * `Linux`: Uses `inotify`. The implementation supports watching both
351 * files and directories. Recursive watching is not supported. 351 * files and directories. Recursive watching is not supported.
352 * Note: When watching files directly, delete events might not happen
353 * as expected.
352 * * `Mac OS`: Uses `FSEvents`. The implementation supports watching both 354 * * `Mac OS`: Uses `FSEvents`. The implementation supports watching both
353 * files and directories. Recursive watching is supported. 355 * files and directories. Recursive watching is supported.
354 * Note: events happened slightly before calling [watch], may be part of 356 * Note: events happened slightly before calling [watch], may be part of
355 * the returned stream, on Mac OS. 357 * the returned stream, on Mac OS.
356 * 358 *
357 * The system will start listening for events once the returned [Stream] is 359 * The system will start listening for events once the returned [Stream] is
358 * being listened to, not when the call to [watch] is issued. 360 * being listened to, not when the call to [watch] is issued.
359 * 361 *
360 * The returned value is an endless broadcast [Stream], that only stops when 362 * The returned value is an endless broadcast [Stream], that only stops when
361 * one of the following happends: 363 * one of the following happends:
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 } 736 }
735 } 737 }
736 738
737 739
738 abstract class _FileSystemWatcher { 740 abstract class _FileSystemWatcher {
739 external factory _FileSystemWatcher(String path, int events, bool recursive); 741 external factory _FileSystemWatcher(String path, int events, bool recursive);
740 external static bool get isSupported; 742 external static bool get isSupported;
741 743
742 Stream<FileSystemEvent> get stream; 744 Stream<FileSystemEvent> get stream;
743 } 745 }
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