Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(443)

Side by Side Diff: src/pkg/path/filepath/path_plan9.go

Issue 126440043: code review 126440043: path/filepath: make Abs handle paths like c:a.txt properly (Closed)
Patch Set: diff -r 8e4e7940943a2dfd0b60db75fac44865005b2271 https://go.googlecode.com/hg/ Created 10 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pkg/path/filepath/path.go ('k') | src/pkg/path/filepath/path_test.go » ('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 2010 The Go Authors. All rights reserved. 1 // Copyright 2010 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 package filepath 5 package filepath
6 6
7 import "strings" 7 import "strings"
8 8
9 // IsAbs returns true if the path is absolute. 9 // IsAbs returns true if the path is absolute.
10 func IsAbs(path string) bool { 10 func IsAbs(path string) bool {
(...skipping 10 matching lines...) Expand all
21 func HasPrefix(p, prefix string) bool { 21 func HasPrefix(p, prefix string) bool {
22 return strings.HasPrefix(p, prefix) 22 return strings.HasPrefix(p, prefix)
23 } 23 }
24 24
25 func splitList(path string) []string { 25 func splitList(path string) []string {
26 if path == "" { 26 if path == "" {
27 return []string{} 27 return []string{}
28 } 28 }
29 return strings.Split(path, string(ListSeparator)) 29 return strings.Split(path, string(ListSeparator))
30 } 30 }
31
32 func abs(path string) (string, error) {
33 return unixAbs(path)
34 }
OLDNEW
« no previous file with comments | « src/pkg/path/filepath/path.go ('k') | src/pkg/path/filepath/path_test.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b