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

Side by Side Diff: pkg/path/README.md

Issue 18356011: Rename "pathos" package to "path". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 A comprehensive, cross-platform path manipulation library for Dart. 1 A comprehensive, cross-platform path manipulation library for Dart.
2 2
3 The pathos library provides common operations for manipulating file paths: 3 The path package provides common operations for manipulating file paths:
4 joining, splitting, normalizing, etc. 4 joining, splitting, normalizing, etc.
5 5
6 We've tried very hard to make this library do the "right" thing on whatever 6 We've tried very hard to make this library do the "right" thing on whatever
7 platform you run it on. When you use the top-level functions, it will assume the 7 platform you run it on. When you use the top-level functions, it will assume the
8 current platform's path style and work with that. If you want to specifically 8 current platform's path style and work with that. If you want to specifically
9 work with paths of a specific style, you can construct a `path.Builder` for that 9 work with paths of a specific style, you can construct a `path.Builder` for that
10 style. 10 style.
11 11
12 ## Using 12 ## Using
13 13
14 The path library was designed to be imported with a prefix, though you don't 14 The path library was designed to be imported with a prefix, though you don't
15 have to if you don't want to: 15 have to if you don't want to:
16 16
17 import 'package:pathos/path.dart' as path; 17 import 'package:path/path.dart' as path; // TODO(bob): ???
18 18
19 ## Top-level functions 19 ## Top-level functions
20 20
21 The most common way to use the library is through the top-level functions. 21 The most common way to use the library is through the top-level functions.
22 These manipulate path strings based on your current working directory and the 22 These manipulate path strings based on your current working directory and the
23 path style (POSIX, Windows, or URLs) of the host platform. 23 path style (POSIX, Windows, or URLs) of the host platform.
24 24
25 ### String get current 25 ### String get current
26 26
27 Gets the path to the current working directory. In the browser, this means the 27 Gets the path to the current working directory. In the browser, this means the
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 * It can accurately tell if a path is absolute based on drive-letters or UNC 384 * It can accurately tell if a path is absolute based on drive-letters or UNC
385 prefix. 385 prefix.
386 386
387 * It understands that "/foo" is not an absolute path on Windows. 387 * It understands that "/foo" is not an absolute path on Windows.
388 388
389 * It knows that "C:\foo\one.txt" and "c:/foo\two.txt" are two files in the 389 * It knows that "C:\foo\one.txt" and "c:/foo\two.txt" are two files in the
390 same directory. 390 same directory.
391 391
392 If you find a problem, surprise or something that's unclear, please don't 392 If you find a problem, surprise or something that's unclear, please don't
393 hesitate to [file a bug](http://dartbug.com/new) and let us know. 393 hesitate to [file a bug](http://dartbug.com/new) and let us know.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698