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

Issue 13116020: Clean up the semantics of io.dart operations w.r.t. symlinks. (Closed)

Created:
7 years, 9 months ago by nweiz
Modified:
7 years, 9 months ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Clean up the semantics of io.dart operations w.r.t. symlinks. fileExists and dirExists will now both return true for symlinks only if those symlinks are unbroken and point to entries of the appropriate type. entryExists will return true for any symlink as well, broken or unbroken. deleteDir and deleteFile have been replaced with a single function, deleteEntry. This will delete whatever filesystem entry exists at the path specified, whether it's a file, directory, or symlink (broken or unbroken). BUG=9454 Committed: https://code.google.com/p/dart/source/detail?r=20575

Patch Set 1 #

Total comments: 4

Patch Set 2 : Code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -61 lines) Patch
M utils/pub/command_lish.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/entrypoint.dart View 3 chunks +4 lines, -14 lines 0 comments Download
M utils/pub/io.dart View 5 chunks +28 lines, -27 lines 0 comments Download
M utils/pub/oauth2.dart View 1 chunk +1 line, -3 lines 0 comments Download
M utils/pub/path_source.dart View 1 chunk +0 lines, -2 lines 0 comments Download
M utils/pub/pub.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M utils/pub/source.dart View 1 chunk +1 line, -1 line 0 comments Download
utils/pub/system_cache.dart View 1 chunk +1 line, -2 lines 0 comments Download
M utils/tests/pub/install/git/lock_version_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/install/hosted/stay_locked_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/install/pub_install_test.dart View 2 chunks +25 lines, -0 lines 0 comments Download
M utils/tests/pub/io_test.dart View 1 2 chunks +154 lines, -0 lines 0 comments Download
M utils/tests/pub/test_pub.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/validator_test.dart View 4 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
nweiz
7 years, 9 months ago (2013-03-27 20:03:48 UTC) #1
Bob Nystrom
It would be really great to have tests in io_test for all of the permutations ...
7 years, 9 months ago (2013-03-27 20:10:09 UTC) #2
nweiz
I've added tests for the existence predicates. https://codereview.chromium.org/13116020/diff/1/utils/pub/entrypoint.dart File utils/pub/entrypoint.dart (right): https://codereview.chromium.org/13116020/diff/1/utils/pub/entrypoint.dart#newcode213 utils/pub/entrypoint.dart:213: if (!entryExists(lockFilePath)) ...
7 years, 9 months ago (2013-03-27 20:36:28 UTC) #3
nweiz
7 years, 9 months ago (2013-03-27 20:38:04 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 manually as r20575 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698