Chromium Code Reviews| Index: runtime/bin/directory.dart |
| diff --git a/runtime/bin/directory.dart b/runtime/bin/directory.dart |
| index 01e9d1317f109e4dece95bfbee3a33d684cceb9d..caaad10f5d58f5a890b5282f63b0f6db732a5d6c 100644 |
| --- a/runtime/bin/directory.dart |
| +++ b/runtime/bin/directory.dart |
| @@ -65,14 +65,24 @@ interface Directory default _Directory { |
| * Deletes the directory with this name. If the operation completes |
| * successfully the [deleteHandler] is called. Otherwise the |
| * [errorHandler] is called. |
| + * |
| + * If [recursive] is [:true:] this directory and all sub-directories |
| + * and files in the directory is deleted. If [recursive] is |
|
Bill Hesse
2012/02/02 17:24:39
... are deleted.
Mads Ager (google)
2012/02/03 11:48:54
Done.
|
| + * [:false:] only this directory (which must be empty) is |
| + * deleted. [recursive] is [:false:] by default. |
| */ |
| - void delete(); |
| + void delete([bool recursive]); |
| /** |
| * Deletes the directory with this name. Throws an exception |
| - * if the directory is not empty or if deletion failed. |
| - */ |
| - void deleteSync(); |
| + * if the directory cannot be deleted. |
| + * |
| + * If [recursive] is [:true:] this directory and all sub-directories |
| + * and files in the directory is deleted. If [recursive] is |
| + * [:false:] only this directory (which must be empty) is |
| + * deleted. [recursive] is [:false:] by default. |
| + */ |
| + void deleteSync([bool recursive]); |
| /** |
| * List the sub-directories and files of this |