| 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 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 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 809 | 809 |
| 810 String toString() => "FileSystemDeleteEvent('$path')"; | 810 String toString() => "FileSystemDeleteEvent('$path')"; |
| 811 } | 811 } |
| 812 | 812 |
| 813 | 813 |
| 814 /** | 814 /** |
| 815 * File system event for moving of file system objects. | 815 * File system event for moving of file system objects. |
| 816 */ | 816 */ |
| 817 class FileSystemMoveEvent extends FileSystemEvent { | 817 class FileSystemMoveEvent extends FileSystemEvent { |
| 818 /** | 818 /** |
| 819 * If the underlaying implementation is able to identify the destination of | 819 * If the underlying implementation is able to identify the destination of |
| 820 * the moved file, [destination] will be set. Otherwise, it will be `null`. | 820 * the moved file, [destination] will be set. Otherwise, it will be `null`. |
| 821 */ | 821 */ |
| 822 final String destination; | 822 final String destination; |
| 823 | 823 |
| 824 FileSystemMoveEvent._(path, isDirectory, this.destination) | 824 FileSystemMoveEvent._(path, isDirectory, this.destination) |
| 825 : super._(FileSystemEvent.MOVE, path, isDirectory); | 825 : super._(FileSystemEvent.MOVE, path, isDirectory); |
| 826 | 826 |
| 827 String toString() { | 827 String toString() { |
| 828 var buffer = new StringBuffer(); | 828 var buffer = new StringBuffer(); |
| 829 buffer.write("FileSystemMoveEvent('$path'"); | 829 buffer.write("FileSystemMoveEvent('$path'"); |
| 830 if (destination != null) buffer.write(", '$destination'"); | 830 if (destination != null) buffer.write(", '$destination'"); |
| 831 buffer.write(')'); | 831 buffer.write(')'); |
| 832 return buffer.toString(); | 832 return buffer.toString(); |
| 833 } | 833 } |
| 834 } | 834 } |
| 835 | 835 |
| 836 | 836 |
| 837 class _FileSystemWatcher { | 837 class _FileSystemWatcher { |
| 838 external static Stream<FileSystemEvent> _watch( | 838 external static Stream<FileSystemEvent> _watch( |
| 839 String path, int events, bool recursive); | 839 String path, int events, bool recursive); |
| 840 external static bool get isSupported; | 840 external static bool get isSupported; |
| 841 } | 841 } |
| OLD | NEW |