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