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

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

Issue 281723004: Fix Directory, File and Link constructor text. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 * The modes in which a File can be opened. 8 * The modes in which a File can be opened.
9 */ 9 */
10 class FileMode { 10 class FileMode {
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 * a section from _A Tour of the Dart Libraries_ 168 * a section from _A Tour of the Dart Libraries_
169 * covers files and directories. 169 * covers files and directories.
170 * 170 *
171 * * [Write Command-Line Apps](https://www.dartlang.org/docs/tutorials/cmdline/) , 171 * * [Write Command-Line Apps](https://www.dartlang.org/docs/tutorials/cmdline/) ,
172 * a tutorial about writing command-line apps, includes information 172 * a tutorial about writing command-line apps, includes information
173 * about files and directories. 173 * about files and directories.
174 174
175 */ 175 */
176 abstract class File extends FileSystemEntity { 176 abstract class File extends FileSystemEntity {
177 /** 177 /**
178 * Create a File object. 178 * Creates a [File] object.
179 *
180 * The path is either an absolute path,
181 * or it is a relative path which is interpreted relative to the current
182 * working directory (see [Directory.current]).
179 */ 183 */
180 factory File(String path) => new _File(path); 184 factory File(String path) => new _File(path);
181 185
182 /** 186 /**
183 * Create a File object from a URI. 187 * Create a File object from a URI.
184 * 188 *
185 * If [uri] cannot reference a file this throws [UnsupportedError]. 189 * If [uri] cannot reference a file this throws [UnsupportedError].
186 */ 190 */
187 factory File.fromUri(Uri uri) => new File(uri.toFilePath()); 191 factory File.fromUri(Uri uri) => new File(uri.toFilePath());
188 192
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 sb.write(": $osError"); 738 sb.write(": $osError");
735 if (path != null) { 739 if (path != null) {
736 sb.write(", path = '$path'"); 740 sb.write(", path = '$path'");
737 } 741 }
738 } else if (path != null) { 742 } else if (path != null) {
739 sb.write(": $path"); 743 sb.write(": $path");
740 } 744 }
741 return sb.toString(); 745 return sb.toString();
742 } 746 }
743 } 747 }
OLDNEW
« sdk/lib/io/directory.dart ('K') | « sdk/lib/io/directory.dart ('k') | sdk/lib/io/link.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698