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

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

Issue 2997573002: [dart:io] Update docs for FileSystemEvent.isDirectory for Windows (Closed)
Patch Set: . Created 3 years, 4 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
« 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 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 final int type; 749 final int type;
750 750
751 /** 751 /**
752 * The path that triggered the event. Depending on the platform and the 752 * The path that triggered the event. Depending on the platform and the
753 * FileSystemEntity, the path may be relative. 753 * FileSystemEntity, the path may be relative.
754 */ 754 */
755 final String path; 755 final String path;
756 756
757 /** 757 /**
758 * Is `true` if the event target was a directory. 758 * Is `true` if the event target was a directory.
759 *
760 * Note that if the file has been deleted by the time the event has arrived,
761 * this will always be `false` on Windows. In particular, it will always be
762 * `false` for `DELETE` events.
759 */ 763 */
760 final bool isDirectory; 764 final bool isDirectory;
761 765
762 FileSystemEvent._(this.type, this.path, this.isDirectory); 766 FileSystemEvent._(this.type, this.path, this.isDirectory);
763 } 767 }
764 768
765 /** 769 /**
766 * File system event for newly created file system objects. 770 * File system event for newly created file system objects.
767 */ 771 */
768 class FileSystemCreateEvent extends FileSystemEvent { 772 class FileSystemCreateEvent extends FileSystemEvent {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 buffer.write(')'); 823 buffer.write(')');
820 return buffer.toString(); 824 return buffer.toString();
821 } 825 }
822 } 826 }
823 827
824 class _FileSystemWatcher { 828 class _FileSystemWatcher {
825 external static Stream<FileSystemEvent> _watch( 829 external static Stream<FileSystemEvent> _watch(
826 String path, int events, bool recursive); 830 String path, int events, bool recursive);
827 external static bool get isSupported; 831 external static bool get isSupported;
828 } 832 }
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