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 * FileMode describes the modes in which a file can be opened. | 8 * FileMode describes the modes in which a file can be opened. |
9 */ | 9 */ |
10 class FileMode { | 10 class FileMode { |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 */ | 150 */ |
151 Future<String> fullPath(); | 151 Future<String> fullPath(); |
152 | 152 |
153 /** | 153 /** |
154 * Synchronously get the canonical full path corresponding to the file path. | 154 * Synchronously get the canonical full path corresponding to the file path. |
155 * | 155 * |
156 * Throws a [FileException] if the operation fails. | 156 * Throws a [FileException] if the operation fails. |
157 */ | 157 */ |
158 String fullPathSync(); | 158 String fullPathSync(); |
159 | 159 |
| 160 Future<String> resolveSymbolicLinks(); |
| 161 |
| 162 String resolveSymbolicLinksSync(); |
| 163 |
160 /** | 164 /** |
161 * Create a new independent [Stream] for the contents of this file. | 165 * Create a new independent [Stream] for the contents of this file. |
162 * | 166 * |
163 * If [start] is present, the file will be read from byte-offset [start]. | 167 * If [start] is present, the file will be read from byte-offset [start]. |
164 * Otherwise from the beginning (index 0). | 168 * Otherwise from the beginning (index 0). |
165 * | 169 * |
166 * If [end] is present, only up to byte-index [end] will be read. Otherwise, | 170 * If [end] is present, only up to byte-index [end] will be read. Otherwise, |
167 * until end of file. | 171 * until end of file. |
168 * | 172 * |
169 * In order to make sure that system resources are freed, the stream | 173 * In order to make sure that system resources are freed, the stream |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 } | 529 } |
526 } else if (osError != null) { | 530 } else if (osError != null) { |
527 sb.write(": osError"); | 531 sb.write(": osError"); |
528 if (path != null) { | 532 if (path != null) { |
529 sb.write(", path = $path"); | 533 sb.write(", path = $path"); |
530 } | 534 } |
531 } | 535 } |
532 return sb.toString(); | 536 return sb.toString(); |
533 } | 537 } |
534 } | 538 } |
OLD | NEW |