| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 * | 140 * |
| 141 * See [open] for information on the [mode] argument. | 141 * See [open] for information on the [mode] argument. |
| 142 * | 142 * |
| 143 * Throws a [FileException] if the operation fails. | 143 * Throws a [FileException] if the operation fails. |
| 144 */ | 144 */ |
| 145 RandomAccessFile openSync({FileMode mode: FileMode.READ}); | 145 RandomAccessFile openSync({FileMode mode: FileMode.READ}); |
| 146 | 146 |
| 147 /** | 147 /** |
| 148 * Get the canonical full path corresponding to the file path. | 148 * Get the canonical full path corresponding to the file path. |
| 149 * Returns a [:Future<String>:] that completes with the path. | 149 * Returns a [:Future<String>:] that completes with the path. |
| 150 * |
| 151 * *FullPath is deprecated. Use absolutePath or resolveSymbolicLinks |
| 152 * instead. FullPath will be removed the 23rd of September, 2013.* |
| 150 */ | 153 */ |
| 154 @deprecated |
| 151 Future<String> fullPath(); | 155 Future<String> fullPath(); |
| 152 | 156 |
| 153 /** | 157 /** |
| 154 * Synchronously get the canonical full path corresponding to the file path. | 158 * Synchronously get the canonical full path corresponding to the file path. |
| 155 * | 159 * |
| 156 * Throws a [FileException] if the operation fails. | 160 * Throws a [FileException] if the operation fails. |
| 161 * |
| 162 * *FullPathSync is deprecated. Use absolutePathSync or |
| 163 * resolveSymbolicLinksSync instead. FullPathSync will be removed |
| 164 * the 23rd of September, 2013.* |
| 157 */ | 165 */ |
| 166 @deprecated |
| 158 String fullPathSync(); | 167 String fullPathSync(); |
| 159 | 168 |
| 160 /** | 169 /** |
| 161 * Create a new independent [Stream] for the contents of this file. | 170 * Create a new independent [Stream] for the contents of this file. |
| 162 * | 171 * |
| 163 * If [start] is present, the file will be read from byte-offset [start]. | 172 * If [start] is present, the file will be read from byte-offset [start]. |
| 164 * Otherwise from the beginning (index 0). | 173 * Otherwise from the beginning (index 0). |
| 165 * | 174 * |
| 166 * If [end] is present, only up to byte-index [end] will be read. Otherwise, | 175 * If [end] is present, only up to byte-index [end] will be read. Otherwise, |
| 167 * until end of file. | 176 * until end of file. |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 } | 534 } |
| 526 } else if (osError != null) { | 535 } else if (osError != null) { |
| 527 sb.write(": osError"); | 536 sb.write(": osError"); |
| 528 if (path != null) { | 537 if (path != null) { |
| 529 sb.write(", path = $path"); | 538 sb.write(", path = $path"); |
| 530 } | 539 } |
| 531 } | 540 } |
| 532 return sb.toString(); | 541 return sb.toString(); |
| 533 } | 542 } |
| 534 } | 543 } |
| OLD | NEW |