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.* | |
162 */ | 159 */ |
163 @deprecated | |
164 Future<String> fullPath(); | 160 Future<String> fullPath(); |
165 | 161 |
166 /** | 162 /** |
167 * Synchronously get the canonical full path corresponding to the file path. | 163 * Synchronously get the canonical full path corresponding to the file path. |
168 * | 164 * |
169 * Throws a [FileException] if the operation fails. | 165 * 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.* | |
174 */ | 166 */ |
175 @deprecated | |
176 String fullPathSync(); | 167 String fullPathSync(); |
177 | 168 |
178 /** | 169 /** |
179 * Create a new independent [Stream] for the contents of this file. | 170 * Create a new independent [Stream] for the contents of this file. |
180 * | 171 * |
181 * 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]. |
182 * Otherwise from the beginning (index 0). | 173 * Otherwise from the beginning (index 0). |
183 * | 174 * |
184 * 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, |
185 * until end of file. | 176 * until end of file. |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 } | 534 } |
544 } else if (osError != null) { | 535 } else if (osError != null) { |
545 sb.write(": osError"); | 536 sb.write(": osError"); |
546 if (path != null) { | 537 if (path != null) { |
547 sb.write(", path = $path"); | 538 sb.write(", path = $path"); |
548 } | 539 } |
549 } | 540 } |
550 return sb.toString(); | 541 return sb.toString(); |
551 } | 542 } |
552 } | 543 } |
OLD | NEW |