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

Issue 4934049: code review 4934049: os: use GetFileAttributesEx to implement Stat on windows (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by brainman
Modified:
12 years, 8 months ago
Reviewers:
CC:
rsc, golang-dev
Visibility:
Public.

Description

os: use GetFileAttributesEx to implement Stat on windows Fixes issue 2129.

Patch Set 1 #

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

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

Patch Set 4 : diff -r 5ffc2faf4d43 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 5 : diff -r 56fb1fd74279 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -114 lines) Patch
M src/pkg/os/file_posix.go View 1 2 3 1 chunk +0 lines, -33 lines 0 comments Download
M src/pkg/os/file_unix.go View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download
M src/pkg/os/file_windows.go View 1 2 3 4 6 chunks +8 lines, -32 lines 0 comments Download
M src/pkg/os/stat_windows.go View 1 2 3 1 chunk +60 lines, -8 lines 0 comments Download
M src/pkg/syscall/syscall_windows.go View 1 2 3 2 chunks +1 line, -33 lines 0 comments Download
M src/pkg/syscall/zsyscall_windows_386.go View 1 2 3 3 chunks +17 lines, -1 line 0 comments Download
M src/pkg/syscall/zsyscall_windows_amd64.go View 1 2 3 3 chunks +17 lines, -1 line 0 comments Download
M src/pkg/syscall/ztypes_windows.go View 1 2 3 2 chunks +14 lines, -6 lines 0 comments Download

Messages

Total messages: 5
brainman
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 8 months ago (2011-08-24 12:06:10 UTC) #1
rsc
Do we have to worry about `.\` and `..\` and `\.` and `\..` and so ...
12 years, 8 months ago (2011-08-24 14:33:40 UTC) #2
brainman
Hello golang-dev@googlegroups.com, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 8 months ago (2011-09-05 07:10:42 UTC) #3
rsc
LGTM http://codereview.appspot.com/4934049/diff/8001/src/pkg/os/file_windows.go File src/pkg/os/file_windows.go (right): http://codereview.appspot.com/4934049/diff/8001/src/pkg/os/file_windows.go#newcode67 src/pkg/os/file_windows.go:67: r, e := syscall.FindFirstFile(syscall.StringToUTF16Ptr(name+"\\*"), &d.data) while you're here, ...
12 years, 8 months ago (2011-09-05 12:14:21 UTC) #4
brainman
12 years, 8 months ago (2011-09-05 23:59:23 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=2a748f320ba5 ***

os: use GetFileAttributesEx to implement Stat on windows

Fixes issue 2129.

R=rsc
CC=golang-dev
http://codereview.appspot.com/4934049

http://codereview.appspot.com/4934049/diff/8001/src/pkg/os/file_windows.go
File src/pkg/os/file_windows.go (right):

http://codereview.appspot.com/4934049/diff/8001/src/pkg/os/file_windows.go#ne...
src/pkg/os/file_windows.go:67: r, e :=
syscall.FindFirstFile(syscall.StringToUTF16Ptr(name+"\\*"), &d.data)
On 2011/09/05 12:14:21, rsc wrote:
> while you're here, change "\\*" to `\*`

Done.
Sign in to reply to this message.

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