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

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

Issue 28943003: dart:io | Remove deprecated behavior of Directory('').createTemp, replaced by Directory.systemTemp. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/io/directory_impl.dart » ('j') | 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 static Directory get systemTemp => _Directory.systemTemp; 78 static Directory get systemTemp => _Directory.systemTemp;
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 *
89 * Deprecated behavior, to be removed Oct 18, 2013: If the path is the
90 * empty string, the directory is created in the default system temp
91 * directory. This capability has been moved to the static getter
92 * [systemTemp].
93 */ 88 */
94 Future<Directory> createTemp([String template]); 89 Future<Directory> createTemp([String template]);
95 90
96 /** 91 /**
97 * Synchronously creates a temporary directory in this directory. 92 * Synchronously creates a temporary directory in this directory.
98 * Additional random characters are appended to [prefix] to produce 93 * Additional random characters are appended to [prefix] to produce
99 * 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
100 * string is used for [prefix]. 95 * string is used for [prefix].
101 * 96 *
102 * Returns the newly created temporary directory. 97 * Returns the newly created temporary directory.
103 *
104 * Deprecated behavior, to be removed Oct 18, 2013: If the path is the
105 * empty string, the directory is created in the default system temp
106 * directory. This capability has been moved to the static function
107 * [createSystemTemp].
108 */ 98 */
109 Directory createTempSync([String template]); 99 Directory createTempSync([String template]);
110 100
111 Future<String> resolveSymbolicLinks(); 101 Future<String> resolveSymbolicLinks();
112 102
113 String resolveSymbolicLinksSync(); 103 String resolveSymbolicLinksSync();
114 104
115 /** 105 /**
116 * Renames this directory. Returns a [:Future<Directory>:] that completes 106 * Renames this directory. Returns a [:Future<Directory>:] that completes
117 * with a [Directory] instance for the renamed directory. 107 * with a [Directory] instance for the renamed directory.
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 if (path != null) { 209 if (path != null) {
220 sb.write(", path = $path"); 210 sb.write(", path = $path");
221 } 211 }
222 } 212 }
223 return sb.toString(); 213 return sb.toString();
224 } 214 }
225 final String message; 215 final String message;
226 final String path; 216 final String path;
227 final OSError osError; 217 final OSError osError;
228 } 218 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/io/directory_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698