Chromium Code Reviews| Index: runtime/bin/directory.dart |
| diff --git a/runtime/bin/directory.dart b/runtime/bin/directory.dart |
| index d7fab763dfa9e1538214d586157bc5bfb8547040..b816c3d525421486b885cba3d03c97824ecaac64 100644 |
| --- a/runtime/bin/directory.dart |
| +++ b/runtime/bin/directory.dart |
| @@ -38,15 +38,16 @@ abstract class Directory { |
| bool existsSync(); |
| /** |
| - * Creates the directory with this name if it does not |
| - * exist. Returns a [:Future<Directory>:] that completes with this |
| - * directory once it has been created. |
| + * Creates the directory with this name. If the directory already |
| + * exists nothing is done. Returns a [:Future<Directory>:] that |
| + * completes with this directory once it has been created. |
|
Søren Gjesse
2012/10/23 09:08:07
Exception information here as well as for the sync
Mads Ager (google)
2012/10/23 09:14:44
Done.
|
| */ |
| Future<Directory> create(); |
| /** |
| - * Synchronously creates the directory with this name if it does not exist. |
| - * Throws an exception if the directory already exists. |
| + * Synchronously creates the directory with this name. If the |
| + * directory already exists nothing is done. If the directory does |
| + * not exist and cannot be created an exception is thrown. |
| */ |
| void createSync(); |