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

Issue 13896034: Add the ability to change the working directory (Closed)

Created:
7 years, 7 months ago by Søren Gjesse
Modified:
7 years, 7 months ago
Reviewers:
Bill Hesse
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add the ability to change the working directory Directory.current have been changed from a factory constructor to a getter and setter. The getter returns a Direcotry object holding the current working directory. The setter changes the current working directory of the Dart process. R=whesse@google.com BUG=https://code.google.com/p/dart/issues/detail?id=6316, https://code.google.com/p/dart/issues/detail?id=8893 Committed: https://code.google.com/p/dart/source/detail?r=22116

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed review comments #

Patch Set 3 : Fix Windows build #

Patch Set 4 : Fixed tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -14 lines) Patch
M pkg/pathos/lib/path.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M pkg/pathos/test/pathos_test.dart View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/bin/builtin_natives.cc View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/dartutils.cc View 1 chunk +7 lines, -3 lines 0 comments Download
M runtime/bin/directory.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/directory.cc View 1 1 chunk +22 lines, -0 lines 0 comments Download
M runtime/bin/directory_android.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/bin/directory_linux.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/bin/directory_macos.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/bin/directory_patch.dart View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/directory_win.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M samples/build_dart/build.dart View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/io_patch.dart View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M sdk/lib/io/directory.dart View 1 2 3 1 chunk +23 lines, -1 line 0 comments Download
M sdk/lib/io/directory_impl.dart View 2 chunks +13 lines, -1 line 0 comments Download
A tests/standalone/io/directory_chdir_test.dart View 1 chunk +50 lines, -0 lines 0 comments Download
M tests/standalone/io/directory_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/testrunner/pipeline_utils.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M utils/testrunner/utils.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/testrunner/testrunner_test.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Søren Gjesse
7 years, 7 months ago (2013-04-29 10:45:57 UTC) #1
Bill Hesse
https://codereview.chromium.org/13896034/diff/1/runtime/bin/directory.cc File runtime/bin/directory.cc (right): https://codereview.chromium.org/13896034/diff/1/runtime/bin/directory.cc#newcode43 runtime/bin/directory.cc:43: printf("XXX\n"); Remove debug printing. https://codereview.chromium.org/13896034/diff/1/runtime/bin/directory_win.cc File runtime/bin/directory_win.cc (right): https://codereview.chromium.org/13896034/diff/1/runtime/bin/directory_win.cc#newcode430 ...
7 years, 7 months ago (2013-04-29 11:01:12 UTC) #2
Søren Gjesse
PTAL Addressed review comments and fixed tests https://codereview.chromium.org/13896034/diff/1/runtime/bin/directory.cc File runtime/bin/directory.cc (right): https://codereview.chromium.org/13896034/diff/1/runtime/bin/directory.cc#newcode43 runtime/bin/directory.cc:43: printf("XXX\n"); On ...
7 years, 7 months ago (2013-04-29 11:59:15 UTC) #3
Bill Hesse
lgtm
7 years, 7 months ago (2013-04-29 12:02:55 UTC) #4
Søren Gjesse
7 years, 7 months ago (2013-04-29 12:44:10 UTC) #5
Message was sent while issue was closed.
Committed patchset #4 manually as r22116 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698