On 2012/10/10 16:21:44, minux wrote: > Hello mailto:golang-dev@googlegroups.com (cc: mailto:golang-dev@googlegroups.com), > > I'd like you ...
12 years, 5 months ago
(2012-10-10 18:49:16 UTC)
#4
On 2012/10/10 16:21:44, minux wrote:
> Hello mailto:golang-dev@googlegroups.com (cc:
mailto:golang-dev@googlegroups.com),
>
> I'd like you to review this change to
> https://code.google.com/p/go/
ENOENT will be ignored when removing files, but now all errors will be shown for
failure to remove directories. Have I read this wrong? Is there no way or need
to discriminate this error when using RemoveAll?
On Wed, Oct 10, 2012 at 11:49 AM, <anacrolix@gmail.com> wrote: > > ENOENT will be ...
12 years, 5 months ago
(2012-10-10 18:53:54 UTC)
#5
On Wed, Oct 10, 2012 at 11:49 AM, <anacrolix@gmail.com> wrote:
>
> ENOENT will be ignored when removing files, but now all errors will be
> shown for failure to remove directories. Have I read this wrong? Is
> there no way or need to discriminate this error when using RemoveAll?
>
> https://codereview.appspot.com/6635064/
In the directory case the code has already verified that the name
exists and is a directory, so there should never be an ENOENT error in
that case.
Ian
On 2012/10/10 18:53:54, iant2 wrote: > On Wed, Oct 10, 2012 at 11:49 AM, <mailto:anacrolix@gmail.com> ...
12 years, 5 months ago
(2012-10-11 15:22:51 UTC)
#6
On 2012/10/10 18:53:54, iant2 wrote:
> On Wed, Oct 10, 2012 at 11:49 AM, <mailto:anacrolix@gmail.com> wrote:
> > ENOENT will be ignored when removing files, but now all errors will be
> > shown for failure to remove directories. Have I read this wrong? Is
> > there no way or need to discriminate this error when using RemoveAll?
> In the directory case the code has already verified that the name
> exists and is a directory, so there should never be an ENOENT error in
> that case.
Also note that according godoc, os.RemoveAll doesn't return an error
when the path can't be found.
Issue 6635064: code review 6635064: cmd/go: don't ignore error when 'go clean'
(Closed)
Created 12 years, 5 months ago by minux1
Modified 12 years, 5 months ago
Reviewers: anacrolix
Base URL:
Comments: 0