Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 * [Directory] objects are used for working with directories. | 8 * [Directory] objects are used for working with directories. |
| 9 */ | 9 */ |
| 10 abstract class Directory implements FileSystemEntity { | 10 abstract class Directory implements FileSystemEntity { |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 81 | 81 |
| 82 /** | 82 /** |
| 83 * Synchronously creates a temporary directory with a name based on the | 83 * Synchronously creates a temporary directory with a name based on the |
| 84 * current path. The path is used as a template, and additional | 84 * current path. The path is used as a template, and additional |
| 85 * characters are appended to it to make a unique temporary directory name. | 85 * characters are appended to it to make a unique temporary directory name. |
| 86 * If the path is the empty string, a default system temp directory and name | 86 * If the path is the empty string, a default system temp directory and name |
| 87 * are used for the template. Returns the newly created temporary directory. | 87 * are used for the template. Returns the newly created temporary directory. |
| 88 */ | 88 */ |
| 89 Directory createTempSync(); | 89 Directory createTempSync(); |
| 90 | 90 |
| 91 Future<String> resolveSymbolicLinks(); | |
|
Anders Johnsen
2013/09/09 12:24:48
Move to FileSystemEntity?
Bill Hesse
2013/09/13 06:34:13
Done.
| |
| 92 | |
| 93 String resolveSymbolicLinksSync(); | |
| 94 | |
| 91 /** | 95 /** |
| 92 * Renames this directory. Returns a [:Future<Directory>:] that completes | 96 * Renames this directory. Returns a [:Future<Directory>:] that completes |
| 93 * with a [Directory] instance for the renamed directory. | 97 * with a [Directory] instance for the renamed directory. |
| 94 * | 98 * |
| 95 * If newPath identifies an existing directory, that directory is | 99 * If newPath identifies an existing directory, that directory is |
| 96 * replaced. If newPath identifies an existing file, the operation | 100 * replaced. If newPath identifies an existing file, the operation |
| 97 * fails and the future completes with an exception. | 101 * fails and the future completes with an exception. |
| 98 */ | 102 */ |
| 99 Future<Directory> rename(String newPath); | 103 Future<Directory> rename(String newPath); |
| 100 | 104 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 186 if (path != null) { | 190 if (path != null) { |
| 187 sb.write(", path = $path"); | 191 sb.write(", path = $path"); |
| 188 } | 192 } |
| 189 } | 193 } |
| 190 return sb.toString(); | 194 return sb.toString(); |
| 191 } | 195 } |
| 192 final String message; | 196 final String message; |
| 193 final String path; | 197 final String path; |
| 194 final OSError osError; | 198 final OSError osError; |
| 195 } | 199 } |
| OLD | NEW |