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

Side by Side Diff: pkg/pathos/lib/path.dart

Issue 14188048: add installation instructions to pkg packages (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: tweaks from review Created 7 years, 8 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) 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 /// A comprehensive, cross-platform path manipulation library. 5 /// A comprehensive, cross-platform path manipulation library.
6 ///
7 /// ## Installing ##
8 ///
9 /// Use [pub][] to install this package. Add the following to your
10 /// `pubspec.yaml` file.
11 ///
12 /// dependencies:
13 /// pathos: any
14 ///
15 /// Then run `pub install`.
16 ///
17 /// For more information, see the
18 /// [pathos package on pub.dartlang.org][pkg].
19 ///
20 /// [pub]: http://pub.dartlang.org
21 /// [pkg]: http://pub.dartlang.org/packages/pathos
6 library path; 22 library path;
7 23
8 import 'dart:io' as io; 24 import 'dart:io' as io;
9 25
10 /// An internal builder for the current OS so we can provide a straight 26 /// An internal builder for the current OS so we can provide a straight
11 /// functional interface and not require users to create one. 27 /// functional interface and not require users to create one.
12 final _builder = new Builder(); 28 final _builder = new Builder();
13 29
14 /** 30 /**
15 * Inserts [length] elements in front of the [list] and fills them with the 31 * Inserts [length] elements in front of the [list] and fills them with the
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 // If there is no dot, or it's the first character, like '.bashrc', it 753 // If there is no dot, or it's the first character, like '.bashrc', it
738 // doesn't count. 754 // doesn't count.
739 if (lastDot <= 0) return [file, '']; 755 if (lastDot <= 0) return [file, ''];
740 756
741 return [file.substring(0, lastDot), file.substring(lastDot)]; 757 return [file.substring(0, lastDot), file.substring(lastDot)];
742 } 758 }
743 759
744 _ParsedPath clone() => new _ParsedPath( 760 _ParsedPath clone() => new _ParsedPath(
745 style, root, new List.from(parts), new List.from(separators)); 761 style, root, new List.from(parts), new List.from(separators));
746 } 762 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698