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

Issue 12217086: Change Directory.list to use the input path, and not resolve it to a full path. (Closed)

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

Description

Change Directory.list to use the input path, and not resolve it to a full path. All paths reported by Directory.list are now extensions of the input path. The Windows platform equivalent change will be committed in a separate CL. BUG= Committed: https://code.google.com/p/dart/source/detail?r=18739

Patch Set 1 #

Patch Set 2 : Finish the work on linux, macos, android. #

Total comments: 1

Patch Set 3 : Add the path separator at the top of the recursive function. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -217 lines) Patch
M runtime/bin/directory_android.cc View 1 2 13 chunks +46 lines, -71 lines 0 comments Download
M runtime/bin/directory_linux.cc View 1 2 11 chunks +48 lines, -71 lines 0 comments Download
M runtime/bin/directory_macos.cc View 1 2 11 chunks +49 lines, -73 lines 0 comments Download
M tests/standalone/io/file_system_links_test.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Bill Hesse
Not for committing - just a preview of the final change. Seems to be bug-free ...
7 years, 10 months ago (2013-02-08 16:21:53 UTC) #1
Bob Nystrom
On 2013/02/08 16:21:53, Bill Hesse wrote: > Not for committing - just a preview of ...
7 years, 10 months ago (2013-02-11 18:49:17 UTC) #2
Bill Hesse
Works, no pub failures, and cleaned up nicely. Making PathBuffer an automatic variable with destructor ...
7 years, 10 months ago (2013-02-13 19:09:20 UTC) #3
Bill Hesse
https://codereview.chromium.org/12217086/diff/4001/runtime/bin/directory_linux.cc File runtime/bin/directory_linux.cc (right): https://codereview.chromium.org/12217086/diff/4001/runtime/bin/directory_linux.cc#newcode77 runtime/bin/directory_linux.cc:77: } I just realized I should remove Add(path separator) ...
7 years, 10 months ago (2013-02-13 19:28:51 UTC) #4
Anders Johnsen
While we are in the area, would it make sense to just return only the ...
7 years, 10 months ago (2013-02-14 10:32:00 UTC) #5
Bill Hesse
On 2013/02/14 10:32:00, Anders Johnsen wrote: > While we are in the area, would it ...
7 years, 10 months ago (2013-02-14 10:41:28 UTC) #6
Bob Nystrom
On 2013/02/14 10:41:28, Bill Hesse wrote: > On 2013/02/14 10:32:00, Anders Johnsen wrote: > > ...
7 years, 10 months ago (2013-02-14 14:59:16 UTC) #7
Bill Hesse
This changelist implements Bob's choice number 2: All paths start with the path of the ...
7 years, 10 months ago (2013-02-14 15:54:34 UTC) #8
Mads Ager (google)
lgtm
7 years, 10 months ago (2013-02-19 07:14:59 UTC) #9
Søren Gjesse
I don't think we should prefix with the directory being listed and I think that ...
7 years, 10 months ago (2013-02-19 08:22:44 UTC) #10
Mads Ager (google)
I see Søren's point that no matter how you get to a directory, the contents ...
7 years, 10 months ago (2013-02-19 08:38:35 UTC) #11
Bill Hesse
Committed patchset #3 manually as r18739 (presubmit successful).
7 years, 10 months ago (2013-02-20 09:27:16 UTC) #12
Søren Gjesse
7 years, 10 months ago (2013-02-20 09:36:23 UTC) #13
Message was sent while issue was closed.
LGTM

As discussed offline the current solution with prefixing the names from list
will not break current code and also play more nicely with the changes to
Directory.list in the IO v2 branch.

Powered by Google App Engine
This is Rietveld 408576698