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

Side by Side Diff: sdk/lib/io/directory.dart

Issue 43433002: dart:io | Directory.createTemp - fix missed rename of template to prefix. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 * A reference to a directory (or _folder_) on the file system. 8 * A reference to a directory (or _folder_) on the file system.
9 */ 9 */
10 abstract class Directory implements FileSystemEntity { 10 abstract class Directory implements FileSystemEntity {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 /** 80 /**
81 * Creates a temporary directory in this directory. Additional random 81 * Creates a temporary directory in this directory. Additional random
82 * characters are appended to [prefix] to produce a unique directory 82 * characters are appended to [prefix] to produce a unique directory
83 * name. If [prefix] is missing or null, the empty string is used 83 * name. If [prefix] is missing or null, the empty string is used
84 * for [prefix]. 84 * for [prefix].
85 * 85 *
86 * Returns a [:Future<Directory>:] that completes with the newly 86 * Returns a [:Future<Directory>:] that completes with the newly
87 * created temporary directory. 87 * created temporary directory.
88 */ 88 */
89 Future<Directory> createTemp([String template]); 89 Future<Directory> createTemp([String prefix]);
90 90
91 /** 91 /**
92 * Synchronously creates a temporary directory in this directory. 92 * Synchronously creates a temporary directory in this directory.
93 * Additional random characters are appended to [prefix] to produce 93 * Additional random characters are appended to [prefix] to produce
94 * a unique directory name. If [prefix] is missing or null, the empty 94 * a unique directory name. If [prefix] is missing or null, the empty
95 * string is used for [prefix]. 95 * string is used for [prefix].
96 * 96 *
97 * Returns the newly created temporary directory. 97 * Returns the newly created temporary directory.
98 */ 98 */
99 Directory createTempSync([String template]); 99 Directory createTempSync([String prefix]);
100 100
101 Future<String> resolveSymbolicLinks(); 101 Future<String> resolveSymbolicLinks();
102 102
103 String resolveSymbolicLinksSync(); 103 String resolveSymbolicLinksSync();
104 104
105 /** 105 /**
106 * Renames this directory. Returns a [:Future<Directory>:] that completes 106 * Renames this directory. Returns a [:Future<Directory>:] that completes
107 * with a [Directory] instance for the renamed directory. 107 * with a [Directory] instance for the renamed directory.
108 * 108 *
109 * If newPath identifies an existing directory, that directory is 109 * If newPath identifies an existing directory, that directory is
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 if (path != null) { 209 if (path != null) {
210 sb.write(", path = $path"); 210 sb.write(", path = $path");
211 } 211 }
212 } 212 }
213 return sb.toString(); 213 return sb.toString();
214 } 214 }
215 final String message; 215 final String message;
216 final String path; 216 final String path;
217 final OSError osError; 217 final OSError osError;
218 } 218 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698