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

Issue 5825044: code review 5825044: path/filepath: implement Match and Glob on windows (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 1 month ago by brainman
Modified:
13 years, 1 month ago
Reviewers:
peterthrun, aram
CC:
golang-dev, r2, mattn, rsc, rog, bsiegert, r
Visibility:
Public.

Description

path/filepath: implement Match and Glob on windows As discussed on golang-dev, windows will use "\" as path separator. No escaping allowed.

Patch Set 1 #

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

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

Patch Set 4 : diff -r 087c6e15702e https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 5 : diff -r 360c1d325ed4 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -23 lines) Patch
M src/pkg/path/filepath/match.go View 1 2 3 4 5 chunks +16 lines, -8 lines 0 comments Download
M src/pkg/path/filepath/match_test.go View 1 2 3 3 chunks +23 lines, -15 lines 0 comments Download

Messages

Total messages: 28
brainman
Hello golang-dev@googlegroups.com (cc: r@golang.org), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 1 month ago (2012-03-14 04:21:51 UTC) #1
brainman
It looks to me that filepath.Glob is not working on Windows. I also noticed some ...
13 years, 1 month ago (2012-03-14 04:22:30 UTC) #2
r2
On Mar 14, 2012, at 3:22 PM, alex.brainman@gmail.com wrote: > It looks to me that ...
13 years, 1 month ago (2012-03-14 04:36:28 UTC) #3
brainman
On Wednesday, March 14, 2012 3:36:21 PM UTC+11, r wrote: > > > ... Perhaps ...
13 years, 1 month ago (2012-03-14 05:10:18 UTC) #4
mattn
I won't pass for windows. Windows can't escape characters in the path. And as far ...
13 years, 1 month ago (2012-03-14 07:01:24 UTC) #5
mattn
typo: s/I won't pass/It won't pass/ On 2012/03/14 07:01:24, mattn wrote: > I won't pass ...
13 years, 1 month ago (2012-03-14 07:02:06 UTC) #6
rsc
On Wed, Mar 14, 2012 at 00:36, Rob 'Commander' Pike <r@google.com> wrote: > The use ...
13 years, 1 month ago (2012-03-14 18:57:49 UTC) #7
rog
On 14 March 2012 18:57, Russ Cox <rsc@golang.org> wrote: > On Wed, Mar 14, 2012 ...
13 years, 1 month ago (2012-03-14 20:37:31 UTC) #8
r2
On 15/03/2012, at 5:57 AM, Russ Cox wrote: > On Wed, Mar 14, 2012 at ...
13 years, 1 month ago (2012-03-14 20:58:09 UTC) #9
brainman
On 2012/03/14 20:58:09, r2 wrote: > > ... you need to add \ to the ...
13 years, 1 month ago (2012-03-14 23:04:10 UTC) #10
r2
On Mar 15, 2012, at 10:04 AM, alex.brainman@gmail.com wrote: > On 2012/03/14 20:58:09, r2 wrote: ...
13 years, 1 month ago (2012-03-14 23:43:28 UTC) #11
r2
On Mar 15, 2012, at 10:43 AM, Rob 'Commander' Pike wrote: > > On Mar ...
13 years, 1 month ago (2012-03-14 23:45:34 UTC) #12
brainman
On 2012/03/14 23:45:34, r2 wrote: > > > > "Need" may be too strong, but ...
13 years, 1 month ago (2012-03-15 00:01:22 UTC) #13
r2
On Mar 15, 2012, at 11:01 AM, alex.brainman@gmail.com wrote: > On 2012/03/14 23:45:34, r2 wrote: ...
13 years, 1 month ago (2012-03-15 00:05:14 UTC) #14
brainman
On 2012/03/15 00:05:14, r2 wrote: > What about we start with rsc rule: ... the ...
13 years, 1 month ago (2012-03-15 00:36:19 UTC) #15
bsiegert
On Thu, Mar 15, 2012 at 01:36, <alex.brainman@gmail.com> wrote: > ... the \ means \ ...
13 years, 1 month ago (2012-03-15 10:21:10 UTC) #16
brainman
> There are paths like \\?\C:\foo, ... This file name will match \\\?\C:\foo. And these ...
13 years, 1 month ago (2012-03-15 10:40:24 UTC) #17
rsc
What if we say that on Windows there is no escape character?
13 years, 1 month ago (2012-03-15 17:21:15 UTC) #18
rog
On 15 March 2012 17:21, Russ Cox <rsc@golang.org> wrote: > What if we say that ...
13 years, 1 month ago (2012-03-15 17:35:02 UTC) #19
rsc
On Thu, Mar 15, 2012 at 13:35, roger peppe <rogpeppe@gmail.com> wrote: > after all, paths ...
13 years, 1 month ago (2012-03-15 18:05:17 UTC) #20
brainman
Here is my thinking: 1) We have decided that our path separators will be different ...
13 years, 1 month ago (2012-03-16 05:58:58 UTC) #21
rog
On 15 March 2012 18:05, Russ Cox <rsc@golang.org> wrote: > On Thu, Mar 15, 2012 ...
13 years, 1 month ago (2012-03-16 15:45:30 UTC) #22
rsc
I object to interpreting \ on Unix as meaning /, just as I object to ...
13 years, 1 month ago (2012-03-16 15:56:47 UTC) #23
brainman
Hello golang-dev@googlegroups.com, r@google.com, mattn.jp@gmail.com, rsc@golang.org, rogpeppe@gmail.com, bsiegert@gmail.com (cc: golang-dev@googlegroups.com, r@golang.org), Please take another look.
13 years, 1 month ago (2012-03-19 03:02:06 UTC) #24
r
LGTM http://codereview.appspot.com/5825044/diff/13001/src/pkg/path/filepath/match.go File src/pkg/path/filepath/match.go (right): http://codereview.appspot.com/5825044/diff/13001/src/pkg/path/filepath/match.go#newcode41 src/pkg/path/filepath/match.go:41: // Escaping is not allowed on windows. Instead, ...
13 years, 1 month ago (2012-03-19 03:39:11 UTC) #25
brainman
*** Submitted as http://code.google.com/p/go/source/detail?r=a216dfd16073 *** path/filepath: implement Match and Glob on windows As discussed on ...
13 years, 1 month ago (2012-03-19 05:51:14 UTC) #26
peterthrun_ymail.com
> > One day I'd like to meet the person who chose \ as the ...
13 years, 1 month ago (2012-03-20 01:09:46 UTC) #27
aram
13 years, 1 month ago (2012-03-20 13:00:41 UTC) #28
>
> Why is the DOS path character
"\"?<http://blogs.msdn.com/b/larryosterman/archive/2005/06/24/432386.aspx>
>  


Seems to be significantly older than that: 
http://news.ycombinator.com/item?id=3723529 
Sign in to reply to this message.

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