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 * A [FileSystemEntity] is a common super class for [File] and | 8 * A [FileSystemEntity] is a common super class for [File] and |
9 * [Directory] objects. | 9 * [Directory] objects. |
10 * | 10 * |
11 * [FileSystemEntity] objects are returned from directory listing | 11 * [FileSystemEntity] objects are returned from directory listing |
12 * operations. To determine if a FileSystemEntity is a [File] or a | 12 * operations. To determine if a FileSystemEntity is a [File] or a |
13 * [Directory], perform a type check: | 13 * [Directory], perform a type check: |
14 * | 14 * |
15 * if (entity is File) (entity as File).readAsStringSync(); | 15 * if (entity is File) (entity as File).readAsStringSync(); |
16 */ | 16 */ |
17 abstract class FileSystemEntity { | 17 abstract class FileSystemEntity { |
| 18 String get path; |
18 } | 19 } |
OLD | NEW |