OLD | NEW |
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 Path is an immutable wrapper of a String, with additional member functions | 8 * A Path is an immutable wrapper of a String, with additional member functions |
9 * for useful path manipulations and queries. | 9 * for useful path manipulations and queries. |
10 * On the Windows platform, Path also converts from native paths to paths using | 10 * On the Windows platform, Path also converts from native paths to paths using |
11 * '/' as a path separator, and vice versa. | 11 * '/' as a path separator, and vice versa. |
12 * | 12 * |
13 * Joining of paths and path normalization handle '.' and '..' in the usual way. | 13 * Joining of paths and path normalization handle '.' and '..' in the usual way. |
14 * | 14 * |
15 * *Path is deprecated. Use package pathos. Path will be removed the 11th of | 15 * *Path is deprecated. Use package path. Path will be removed the 11th of |
16 * August 2013.* | 16 * August 2013.* |
17 */ | 17 */ |
18 @deprecated | 18 @deprecated |
19 abstract class Path { | 19 abstract class Path { |
20 /** | 20 /** |
21 * Creates a Path from a String that uses the native filesystem's conventions. | 21 * Creates a Path from a String that uses the native filesystem's conventions. |
22 * | 22 * |
23 * On Windows, this converts '\' to '/' and has special handling for drive | 23 * On Windows, this converts '\' to '/' and has special handling for drive |
24 * letters and shares. | 24 * letters and shares. |
25 * | 25 * |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 | 205 |
206 /** | 206 /** |
207 * The part of [filename] after the last '.', or '' if [filename] | 207 * The part of [filename] after the last '.', or '' if [filename] |
208 * contains no '.'. If [filename] is '.' or '..', returns ''. | 208 * contains no '.'. If [filename] is '.' or '..', returns ''. |
209 * | 209 * |
210 * new Path('tiger.svg').extension == 'svg' | 210 * new Path('tiger.svg').extension == 'svg' |
211 * new Path('/src/dart/dart_secrets').extension == '' | 211 * new Path('/src/dart/dart_secrets').extension == '' |
212 */ | 212 */ |
213 String get extension; | 213 String get extension; |
214 } | 214 } |
OLD | NEW |