Can you wait a couple hours on this? (or just patch it in locally if you
need it for Windows?)
Russ said I was doing this wrong before, so I'm curious if I'm still doing
it wrong.
Or if the API sucks (the optional filename parameter, which doesn't seem
avoidable, but I could also see being a readlink function instead of a
string...)
On Mon, Mar 12, 2012 at 3:15 PM, <adg@golang.org> wrote:
> LGTM
>
>
http://codereview.appspot.com/**5796073/<http://codereview.appspot.com/5796073/>
>
On 13 March 2012 09:18, Brad Fitzpatrick <bradfitz@golang.org> wrote:
> Can you wait a couple hours on this? (or just patch it in locally if you
> need it for Windows?)
Sounds fine to me.
On 2012/03/12 21:44:39, bradfitz wrote:
> Hello mailto:golang-dev@googlegroups.com,
>
> I'd like you to review this change to
> https://go.googlecode.com/hg
+1 one for this addition thanks Brad, Even if its not included in Go1 its a nice
change. I currently have some code that does this but I'll port it to your new
function and provide any feed back where I can.
http://codereview.appspot.com/5796073/diff/2004/src/pkg/archive/tar/common.go File src/pkg/archive/tar/common.go (right): http://codereview.appspot.com/5796073/diff/2004/src/pkg/archive/tar/common.go#newcode71 src/pkg/archive/tar/common.go:71: // The filename parameter is used only in the ...
12 years, 10 months ago
(2012-05-03 21:41:47 UTC)
#11
On Thu, May 24, 2012 at 10:58 AM, Russ Cox <rsc@golang.org> wrote: > No. The ...
12 years, 9 months ago
(2012-05-24 18:06:44 UTC)
#15
On Thu, May 24, 2012 at 10:58 AM, Russ Cox <rsc@golang.org> wrote:
> No. The argument needs to be an os.FileInfo.
>
It does? Okay. Signatures welcome.
I couldn't come up with anything I liked that dealt with symlinks.
On Thu, May 24, 2012 at 11:15 AM, Russ Cox <rsc@golang.org> wrote: > Symlinks are ...
12 years, 9 months ago
(2012-05-24 18:25:14 UTC)
#17
On Thu, May 24, 2012 at 11:15 AM, Russ Cox <rsc@golang.org> wrote:
> Symlinks are a special case. What's wrong with
>
> FileInfoHeader(fi os.FileInfo, symlink string)
>
> ?
>
So all callers look like:
fi, err := os.Lstat(filename)
...
target, _ := os.Readlink(filename)
h, err := tar.FileInfoHeader(fi, target)
?
That Readlink line before looks a little weird. But sure, if you're happy
with that.
Issue 5796073: code review 5796073: archive/tar: add FileInfoHeader function
(Closed)
Created 13 years ago by bradfitz
Modified 12 years, 9 months ago
Reviewers:
Base URL:
Comments: 12