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

Issue 349503003: Properly return Windows-formatted paths from package.listFiles. (Closed)

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

Description

Properly return Windows-formatted paths from package.listFiles. In r37514 I incorrectly assumed that the problem was Directory.list when in fact it's git. R=rnystrom@google.com Committed: https://code.google.com/p/dart/source/detail?r=37527

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -7 lines) Patch
M sdk/lib/_internal/pub/lib/src/io.dart View 1 chunk +1 line, -4 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/package.dart View 1 chunk +7 lines, -3 lines 2 comments Download

Messages

Total messages: 5 (0 generated)
nweiz
6 years, 6 months ago (2014-06-19 23:37:51 UTC) #1
nweiz
On 2014/06/19 23:37:51, nweiz wrote: TBR
6 years, 6 months ago (2014-06-20 00:53:26 UTC) #2
nweiz
Committed patchset #1 manually as r37527 (presubmit successful).
6 years, 6 months ago (2014-06-20 00:54:50 UTC) #3
Bob Nystrom
One suggestion/question but LGTM. https://codereview.chromium.org/349503003/diff/1/sdk/lib/_internal/pub/lib/src/package.dart File sdk/lib/_internal/pub/lib/src/package.dart (right): https://codereview.chromium.org/349503003/diff/1/sdk/lib/_internal/pub/lib/src/package.dart#newcode154 sdk/lib/_internal/pub/lib/src/package.dart:154: return !linkExists(file) || fileExists(file); Stat-ing ...
6 years, 6 months ago (2014-06-20 16:01:57 UTC) #4
nweiz
6 years, 6 months ago (2014-06-23 20:27:54 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/349503003/diff/1/sdk/lib/_internal/pub/lib/sr...
File sdk/lib/_internal/pub/lib/src/package.dart (right):

https://codereview.chromium.org/349503003/diff/1/sdk/lib/_internal/pub/lib/sr...
sdk/lib/_internal/pub/lib/src/package.dart:154: return !linkExists(file) ||
fileExists(file);
On 2014/06/20 16:01:57, Bob Nystrom wrote:
> Stat-ing each file twice is likely going to be a perf hit. How about:
> 
> FileSystemEntity.typeSync(file) == FileSystemEntityType.FILE
> 
> ?

Actually, just fileExists should work, now that I think about it.

Powered by Google App Engine
This is Rietveld 408576698