Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(414)

Issue 12691002: dart:io | Add Link class, as sibling to File and Directory. (Closed)

Created:
7 years, 9 months ago by Bill Hesse
Modified:
7 years, 9 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 30

Patch Set 2 : Address comments. #

Patch Set 3 : Implement Link.CreateSync, use it in file_system_links_test. #

Total comments: 21

Patch Set 4 : Address comments. #

Patch Set 5 : Reverted patch, including fixes 19774 and 19775. #

Total comments: 6

Patch Set 6 : Implement Link.create on Windows. #

Patch Set 7 : Add link_test.dart #

Patch Set 8 : Add fixes for Windows. #

Total comments: 1

Patch Set 9 : Remove remaining references to linkRelative argument. #

Patch Set 10 : Fix Windows errors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+406 lines, -36 lines) Patch
M runtime/bin/builtin_natives.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/file.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/file.cc View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
M runtime/bin/file_android.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/bin/file_linux.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/bin/file_macos.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/bin/file_patch.dart View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/bin/file_win.cc View 1 2 3 4 5 6 7 8 9 3 chunks +103 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/io_patch.dart View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M sdk/lib/io/file.dart View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M sdk/lib/io/file_impl.dart View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M sdk/lib/io/io.dart View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/io/iolib_sources.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
A sdk/lib/io/link.dart View 1 2 3 4 5 6 7 8 9 1 chunk +178 lines, -0 lines 0 comments Download
M tests/standalone/io/file_system_links_test.dart View 1 2 3 4 5 6 8 chunks +11 lines, -22 lines 0 comments Download
A tests/standalone/io/link_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +55 lines, -0 lines 0 comments Download
M tests/standalone/io/windows_file_system_links_test.dart View 1 2 3 4 5 6 7 3 chunks +2 lines, -14 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Bill Hesse
Just sending out the proposed Link class, to get feedback on the API. We know ...
7 years, 9 months ago (2013-03-08 09:57:20 UTC) #1
Anders Johnsen
https://codereview.chromium.org/12691002/diff/1/sdk/lib/io/link.dart File sdk/lib/io/link.dart (right): https://codereview.chromium.org/12691002/diff/1/sdk/lib/io/link.dart#newcode50 sdk/lib/io/link.dart:50: void createSync(); String target https://codereview.chromium.org/12691002/diff/1/sdk/lib/io/link.dart#newcode70 sdk/lib/io/link.dart:70: void updateSync(); String ...
7 years, 9 months ago (2013-03-08 10:11:47 UTC) #2
Søren Gjesse
https://codereview.chromium.org/12691002/diff/1/sdk/lib/io/link.dart File sdk/lib/io/link.dart (right): https://codereview.chromium.org/12691002/diff/1/sdk/lib/io/link.dart#newcode24 sdk/lib/io/link.dart:24: * [:Future<bool>:] that completes when the answer is known. ...
7 years, 9 months ago (2013-03-08 10:22:31 UTC) #3
Anders Johnsen
https://codereview.chromium.org/12691002/diff/1/sdk/lib/io/link.dart File sdk/lib/io/link.dart (right): https://codereview.chromium.org/12691002/diff/1/sdk/lib/io/link.dart#newcode124 sdk/lib/io/link.dart:124: String get path; On 2013/03/08 10:22:31, Søren Gjesse wrote: ...
7 years, 9 months ago (2013-03-08 10:27:08 UTC) #4
Bill Hesse
Comments addressed. linkRelative optional parameter added for creating links and reporting the target. https://codereview.chromium.org/12691002/diff/1/sdk/lib/io/link.dart File ...
7 years, 9 months ago (2013-03-08 12:04:26 UTC) #5
nweiz
https://codereview.chromium.org/12691002/diff/10001/sdk/lib/io/link.dart File sdk/lib/io/link.dart (right): https://codereview.chromium.org/12691002/diff/10001/sdk/lib/io/link.dart#newcode42 sdk/lib/io/link.dart:42: * directory. Explain what [target] is relative to if ...
7 years, 9 months ago (2013-03-08 20:26:41 UTC) #6
Bill Hesse
https://codereview.chromium.org/12691002/diff/10001/sdk/lib/io/link.dart File sdk/lib/io/link.dart (right): https://codereview.chromium.org/12691002/diff/10001/sdk/lib/io/link.dart#newcode42 sdk/lib/io/link.dart:42: * directory. On 2013/03/08 20:26:41, nweiz wrote: > Explain ...
7 years, 9 months ago (2013-03-11 09:25:59 UTC) #7
Bill Hesse
Committed patchset #4 manually as r19772 (presubmit successful).
7 years, 9 months ago (2013-03-11 10:35:04 UTC) #8
Mads Ager (google)
On 2013/03/11 10:35:04, Bill Hesse wrote: > Committed patchset #4 manually as r19772 (presubmit successful). ...
7 years, 9 months ago (2013-03-11 11:23:45 UTC) #9
Bill Hesse
Committed accidentally without any LGTM. Please make additional comments, or suggest reverting, and I will ...
7 years, 9 months ago (2013-03-11 11:34:48 UTC) #10
Søren Gjesse
I think we need to agree on the exact semantics of Link.create and the optional ...
7 years, 9 months ago (2013-03-11 12:04:17 UTC) #11
Søren Gjesse
On 2013/03/11 12:04:17, Søren Gjesse wrote: > I think we need to agree on the ...
7 years, 9 months ago (2013-03-11 12:04:40 UTC) #12
Bill Hesse
CL reverted, reopened and reuploaded, with fixes. I will implement Link.Create on Windows, and other ...
7 years, 9 months ago (2013-03-11 12:32:10 UTC) #13
Anders Johnsen
My opinion is quite clear on this: If you are working with the Link class, ...
7 years, 9 months ago (2013-03-11 13:44:24 UTC) #14
Søren Gjesse
On 2013/03/11 12:32:10, Bill Hesse wrote: > CL reverted, reopened and reuploaded, with fixes. > ...
7 years, 9 months ago (2013-03-11 13:50:40 UTC) #15
Søren Gjesse
On 2013/03/11 13:50:40, Søren Gjesse wrote: > On 2013/03/11 12:32:10, Bill Hesse wrote: > > ...
7 years, 9 months ago (2013-03-11 13:51:54 UTC) #16
Bill Hesse
OK, so it sounds like we can use a single createLink function which, in the ...
7 years, 9 months ago (2013-03-11 14:49:01 UTC) #17
nweiz
All the changes I'm looking at LGTM. https://codereview.chromium.org/12691002/diff/10001/sdk/lib/io/link.dart File sdk/lib/io/link.dart (right): https://codereview.chromium.org/12691002/diff/10001/sdk/lib/io/link.dart#newcode201 sdk/lib/io/link.dart:201: } On ...
7 years, 9 months ago (2013-03-11 20:26:32 UTC) #18
Søren Gjesse
https://codereview.chromium.org/12691002/diff/22002/runtime/bin/file.cc File runtime/bin/file.cc (right): https://codereview.chromium.org/12691002/diff/22002/runtime/bin/file.cc#newcode443 runtime/bin/file.cc:443: Dart_Handle err = DartUtils::NewDartOSError(&os_error); I think we should use ...
7 years, 9 months ago (2013-03-12 08:41:49 UTC) #19
Bill Hesse
Windows implementation of Link.create added. link_test.dart and windows_file_system_links_test.dart added. More tests of Link will be ...
7 years, 9 months ago (2013-03-13 16:17:37 UTC) #20
Søren Gjesse
lgtm https://codereview.chromium.org/12691002/diff/10002/tests/standalone/io/link_test.dart File tests/standalone/io/link_test.dart (right): https://codereview.chromium.org/12691002/diff/10002/tests/standalone/io/link_test.dart#newcode12 tests/standalone/io/link_test.dart:12: bool windows = false; This is not used ...
7 years, 9 months ago (2013-03-13 16:44:01 UTC) #21
Bill Hesse
7 years, 9 months ago (2013-03-14 09:37:59 UTC) #22
Message was sent while issue was closed.
Committed patchset #10 manually as r19995 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698