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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/io/directory.dart ('k') | sdk/lib/io/link.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/file.dart
diff --git a/sdk/lib/io/file.dart b/sdk/lib/io/file.dart
index 85aa1b346599732abf16086dd56a90efd7bc0697..eff8778f8828bcb414dcb1224c72151acff6f856 100644
--- a/sdk/lib/io/file.dart
+++ b/sdk/lib/io/file.dart
@@ -76,12 +76,14 @@ abstract class File extends FileSystemEntity {
/**
* Delete the file. Returns a [:Future<File>:] that completes with
- * the file when it has been deleted.
+ * the file when it has been deleted. Only a file or a link to a file
+ * can be deleted with this method, not a directory or a broken link.
*/
Future<File> delete();
/**
- * Synchronously delete the file.
+ * Synchronously delete the file. Only a file or a link to a file
+ * can be deleted with this method, not a directory or a broken link.
*
* Throws a [FileIOException] if the operation fails.
*/
« 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