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

Side by Side Diff: runtime/bin/directory.dart

Issue 11090016: Change core lib, dart2js, and more for new optional parameters syntax (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « pkg/unittest/unittest.dart ('k') | runtime/bin/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 /** 5 /**
6 * [Directory] objects are used for working with directories. 6 * [Directory] objects are used for working with directories.
7 */ 7 */
8 abstract class Directory { 8 abstract class Directory {
9 /** 9 /**
10 * Creates a directory object. The path is either an absolute path, 10 * Creates a directory object. The path is either an absolute path,
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 */ 119 */
120 Directory renameSync(String newPath); 120 Directory renameSync(String newPath);
121 121
122 /** 122 /**
123 * List the sub-directories and files of this 123 * List the sub-directories and files of this
124 * [Directory]. Optionally recurse into sub-directories. Returns a 124 * [Directory]. Optionally recurse into sub-directories. Returns a
125 * [DirectoryLister] object representing the active listing 125 * [DirectoryLister] object representing the active listing
126 * operation. Handlers for files and directories should be 126 * operation. Handlers for files and directories should be
127 * registered on this DirectoryLister object. 127 * registered on this DirectoryLister object.
128 */ 128 */
129 DirectoryLister list([bool recursive = false]); 129 DirectoryLister list({bool recursive: false});
130 130
131 /** 131 /**
132 * Gets the path of this directory. 132 * Gets the path of this directory.
133 */ 133 */
134 final String path; 134 final String path;
135 } 135 }
136 136
137 137
138 /** 138 /**
139 * A [DirectoryLister] represents an actively running listing operation. 139 * A [DirectoryLister] represents an actively running listing operation.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 if (path != null) { 192 if (path != null) {
193 sb.add(", path = $path"); 193 sb.add(", path = $path");
194 } 194 }
195 } 195 }
196 return sb.toString(); 196 return sb.toString();
197 } 197 }
198 final String message; 198 final String message;
199 final String path; 199 final String path;
200 final OSError osError; 200 final OSError osError;
201 } 201 }
OLDNEW
« no previous file with comments | « pkg/unittest/unittest.dart ('k') | runtime/bin/directory_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698