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

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

Issue 159933008: Make File, Link and Directory extend, not implement, FileSystemEntity. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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/file.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 extends FileSystemEntity {
11 /** 11 /**
12 * Gets the path of this directory. 12 * Gets the path of this directory.
13 */ 13 */
14 final String path; 14 final String path;
15 15
16 /** 16 /**
17 * Creates a directory object. The path is either an absolute path, 17 * Creates a directory object. The path is either an absolute path,
18 * or it is a relative path which is interpreted relative to the directory 18 * or it is a relative path which is interpreted relative to the directory
19 * in which the Dart VM was started. 19 * in which the Dart VM was started.
20 */ 20 */
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 * directories, files, and links. 187 * directories, files, and links.
188 */ 188 */
189 List<FileSystemEntity> listSync({bool recursive: false, 189 List<FileSystemEntity> listSync({bool recursive: false,
190 bool followLinks: true}); 190 bool followLinks: true});
191 191
192 /** 192 /**
193 * Returns a human readable string for this Directory instance. 193 * Returns a human readable string for this Directory instance.
194 */ 194 */
195 String toString(); 195 String toString();
196 } 196 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/io/file.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698