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

Issue 5503067: code review 5503067: path/filepath: Dir (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 7 months ago by r
Modified:
13 years, 7 months ago
Reviewers:
CC:
niemeyer, r2, rsc, gustavo_niemeyer.net, golang-dev
Visibility:
Public.

Description

path/filepath: Dir There was Base but not Dir, so fill in the gap.

Patch Set 1 #

Total comments: 1

Patch Set 2 : diff -r 8206c6c7ebd4 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 8206c6c7ebd4 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 8206c6c7ebd4 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 8206c6c7ebd4 https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r 747c04659b0f https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -0 lines) Patch
M src/pkg/path/filepath/path.go View 1 2 3 4 2 chunks +19 lines, -0 lines 0 comments Download
M src/pkg/path/filepath/path_test.go View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 23
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 7 months ago (2011-12-22 18:17:14 UTC) #1
niemeyer
LGTM. Besides being Base's complement, makes manipulation slightly simpler in some cases by enabling calls ...
13 years, 7 months ago (2011-12-22 18:21:01 UTC) #2
niemeyer
http://codereview.appspot.com/5503067/diff/1/src/pkg/path/filepath/path_test.go File src/pkg/path/filepath/path_test.go (right): http://codereview.appspot.com/5503067/diff/1/src/pkg/path/filepath/path_test.go#newcode442 src/pkg/path/filepath/path_test.go:442: {"abc/def", "abc"}, Hmm.. I do wonder about this case, ...
13 years, 7 months ago (2011-12-22 18:27:23 UTC) #3
r2
On Dec 22, 2011, at 10:27 AM, n13m3y3r@gmail.com wrote: > > http://codereview.appspot.com/5503067/diff/1/src/pkg/path/filepath/path_test.go > File src/pkg/path/filepath/path_test.go ...
13 years, 7 months ago (2011-12-22 18:31:21 UTC) #4
rsc
I think Dir should return the same form that Clean does, which means no trailing ...
13 years, 7 months ago (2011-12-22 19:20:29 UTC) #5
r2
On Dec 22, 2011, at 11:20 AM, Russ Cox wrote: > I think Dir should ...
13 years, 7 months ago (2011-12-22 19:21:43 UTC) #6
rsc
Code looks good. The comment is not quite right: Dir(`/foo`) = `/` but it doesn't ...
13 years, 7 months ago (2011-12-22 19:25:50 UTC) #7
rsc
Please add a test for /foo too.
13 years, 7 months ago (2011-12-22 19:26:03 UTC) #8
gustavo_niemeyer.net
> this was how the whole thing started, with someone complaining about the trailing slash. ...
13 years, 7 months ago (2011-12-22 19:26:22 UTC) #9
r
Hello golang-dev@googlegroups.com, n13m3y3r@gmail.com, r@google.com, rsc@golang.org, gustavo@niemeyer.net (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 7 months ago (2011-12-22 19:37:19 UTC) #10
rsc
I would prefer not to touch Split. It has the very nice property that dir, ...
13 years, 7 months ago (2011-12-22 19:38:25 UTC) #11
r2
On Dec 22, 2011, at 11:25 AM, Gustavo Niemeyer wrote: >> this was how the ...
13 years, 7 months ago (2011-12-22 19:38:40 UTC) #12
r2
On Dec 22, 2011, at 11:38 AM, Russ Cox wrote: > I would prefer not ...
13 years, 7 months ago (2011-12-22 19:40:36 UTC) #13
r
Hello golang-dev@googlegroups.com, n13m3y3r@gmail.com, r@google.com, rsc@golang.org, gustavo@niemeyer.net (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 7 months ago (2011-12-22 19:41:14 UTC) #14
rsc
LGTM barring any good arguments that might arise
13 years, 7 months ago (2011-12-22 19:51:51 UTC) #15
gustavo_niemeyer.net
> I would prefer not to touch Split. > It has the very nice property ...
13 years, 7 months ago (2011-12-22 20:05:59 UTC) #16
rsc
On Thu, Dec 22, 2011 at 15:05, Gustavo Niemeyer <gustavo@niemeyer.net> wrote: > It's an interesting ...
13 years, 7 months ago (2011-12-22 20:10:57 UTC) #17
r
Hello n13m3y3r@gmail.com, r@google.com, rsc@golang.org, gustavo@niemeyer.net (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 7 months ago (2011-12-22 20:58:37 UTC) #18
r2
New attempt, different approach, better results, same idea. -rob
13 years, 7 months ago (2011-12-22 20:59:24 UTC) #19
rsc
LGTM Please copy same into path. I am certain this is wrong for Windows but ...
13 years, 7 months ago (2011-12-22 21:37:48 UTC) #20
r2
On Dec 22, 2011, at 1:37 PM, rsc@golang.org wrote: > LGTM > > Please copy ...
13 years, 7 months ago (2011-12-22 21:43:44 UTC) #21
rsc
On Thu, Dec 22, 2011 at 16:43, Rob 'Commander' Pike <r@google.com> wrote: > if this ...
13 years, 7 months ago (2011-12-22 21:50:23 UTC) #22
r
13 years, 7 months ago (2011-12-22 21:59:29 UTC) #23
*** Submitted as http://code.google.com/p/go/source/detail?r=f13664d9df19 ***

path/filepath: Dir

There was Base but not Dir, so fill in the gap.

R=n13m3y3r, r, rsc, gustavo
CC=golang-dev
http://codereview.appspot.com/5503067
Sign in to reply to this message.

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