Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: sdk/lib/io/file.dart

Issue 13862003: dart:io | Add documentation changes to Link, File and Directory delete methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/io/directory.dart ('k') | sdk/lib/io/link.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 * Synchronously create the file. Existing files are left untouched 69 * Synchronously create the file. Existing files are left untouched
70 * by [createSync]. Calling [createSync] on an existing file might fail 70 * by [createSync]. Calling [createSync] on an existing file might fail
71 * if there are restrictive permissions on the file. 71 * if there are restrictive permissions on the file.
72 * 72 *
73 * Throws a [FileIOException] if the operation fails. 73 * Throws a [FileIOException] if the operation fails.
74 */ 74 */
75 void createSync(); 75 void createSync();
76 76
77 /** 77 /**
78 * Delete the file. Returns a [:Future<File>:] that completes with 78 * Delete the file. Returns a [:Future<File>:] that completes with
79 * the file when it has been deleted. 79 * the file when it has been deleted. Only a file or a link to a file
80 * can be deleted with this method, not a directory or a broken link.
80 */ 81 */
81 Future<File> delete(); 82 Future<File> delete();
82 83
83 /** 84 /**
84 * Synchronously delete the file. 85 * Synchronously delete the file. Only a file or a link to a file
86 * can be deleted with this method, not a directory or a broken link.
85 * 87 *
86 * Throws a [FileIOException] if the operation fails. 88 * Throws a [FileIOException] if the operation fails.
87 */ 89 */
88 void deleteSync(); 90 void deleteSync();
89 91
90 /** 92 /**
91 * Get a [Directory] object for the directory containing this 93 * Get a [Directory] object for the directory containing this
92 * file. Returns a [:Future<Directory>:] that completes with the 94 * file. Returns a [:Future<Directory>:] that completes with the
93 * directory. 95 * directory.
94 */ 96 */
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 sb.write(" ($osError)"); 522 sb.write(" ($osError)");
521 } 523 }
522 } else if (osError != null) { 524 } else if (osError != null) {
523 sb.write(": osError"); 525 sb.write(": osError");
524 } 526 }
525 return sb.toString(); 527 return sb.toString();
526 } 528 }
527 final String message; 529 final String message;
528 final OSError osError; 530 final OSError osError;
529 } 531 }
OLDNEW
« no previous file with comments | « sdk/lib/io/directory.dart ('k') | sdk/lib/io/link.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698