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

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

Issue 11661003: Implement toString on File and Directory objects. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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') | sdk/lib/io/directory_impl.dart » ('J')
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 * [Directory] objects are used for working with directories. 8 * [Directory] objects are used for working with directories.
9 */ 9 */
10 abstract class Directory { 10 abstract class Directory {
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 /** 133 /**
134 * List the sub-directories and files of this 134 * List the sub-directories and files of this
135 * [Directory]. Optionally recurse into sub-directories. Returns a 135 * [Directory]. Optionally recurse into sub-directories. Returns a
136 * [DirectoryLister] object representing the active listing 136 * [DirectoryLister] object representing the active listing
137 * operation. Handlers for files and directories should be 137 * operation. Handlers for files and directories should be
138 * registered on this DirectoryLister object. 138 * registered on this DirectoryLister object.
139 */ 139 */
140 DirectoryLister list({bool recursive: false}); 140 DirectoryLister list({bool recursive: false});
141 141
142 /** 142 /**
143 * Returns a human readable string for this Directory instance.
144 */
145 String toString();
146
147 /**
143 * Gets the path of this directory. 148 * Gets the path of this directory.
144 */ 149 */
145 final String path; 150 final String path;
146 } 151 }
147 152
148 153
149 /** 154 /**
150 * A [DirectoryLister] represents an actively running listing operation. 155 * A [DirectoryLister] represents an actively running listing operation.
151 * 156 *
152 * A [DirectoryLister] is obtained from a [Directory] object by calling 157 * A [DirectoryLister] is obtained from a [Directory] object by calling
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 if (path != null) { 214 if (path != null) {
210 sb.add(", path = $path"); 215 sb.add(", path = $path");
211 } 216 }
212 } 217 }
213 return sb.toString(); 218 return sb.toString();
214 } 219 }
215 final String message; 220 final String message;
216 final String path; 221 final String path;
217 final OSError osError; 222 final OSError osError;
218 } 223 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/io/directory_impl.dart » ('j') | sdk/lib/io/directory_impl.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698