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

Unified Diff: sdk/lib/io/directory.dart

Issue 23889008: Move delete/deleteSync up to FileSystemEntity, with a shared documentation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Style fixes. Created 7 years, 3 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/_internal/lib/io_patch.dart ('k') | sdk/lib/io/directory_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/directory.dart
diff --git a/sdk/lib/io/directory.dart b/sdk/lib/io/directory.dart
index 57b656862726c8f5a60e07d78041a67e15d7e5f0..a7fe5202e485480332d249dce060b33d666ba3ed 100644
--- a/sdk/lib/io/directory.dart
+++ b/sdk/lib/io/directory.dart
@@ -89,43 +89,6 @@ abstract class Directory implements FileSystemEntity {
Directory createTempSync();
/**
- * Deletes this directory.
- *
- * If [recursive] is false, the directory must be empty. Only directories
- * and links to directories will be deleted.
- *
- * If [recursive] is true, this directory and all sub-directories
- * and files in the directories are deleted. Links are not followed
- * when deleting recursively. Only the link is deleted, not its target.
- *
- * If [recursive] is true, the target is deleted even if it is a file, or
- * a link to a file, not only if it is a directory. This behavior allows
- * [delete] to be used to unconditionally delete any file system object.
- *
- * Returns a [:Future<Directory>:] that completes with this
- * directory when the deletion is done. If the directory cannot be
- * deleted, the future completes with an exception.
- */
- Future<Directory> delete({recursive: false});
-
- /**
- * Synchronously deletes this directory.
- *
- * If [recursive] is false, the directory must be empty.
- *
- * If [recursive] is true, this directory and all sub-directories
- * and files in the directories are deleted. Links are not followed
- * when deleting recursively. Only the link is deleted, not its target.
- *
- * If [recursive] is true, the target is deleted even if it is a file, or
- * a link to a file, not only if it is a directory. This behavior allows
- * [delete] to be used to unconditionally delete any file system object.
- *
- * Throws an exception if the directory cannot be deleted.
- */
- void deleteSync({recursive: false});
-
- /**
* Renames this directory. Returns a [:Future<Directory>:] that completes
* with a [Directory] instance for the renamed directory.
*
« no previous file with comments | « sdk/lib/_internal/lib/io_patch.dart ('k') | sdk/lib/io/directory_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698