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

Unified Diff: runtime/bin/vmservice/vmservice_io.dart

Issue 2111673009: Fix Windows dev_fs_test failure (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmservice/vmservice_io.dart
diff --git a/runtime/bin/vmservice/vmservice_io.dart b/runtime/bin/vmservice/vmservice_io.dart
index ba2b27701501b054cd2d156bc63c45886bd8d9b4..3e1bee48db0dce7c96dd69e6a0c7e7afaf032c66 100644
--- a/runtime/bin/vmservice/vmservice_io.dart
+++ b/runtime/bin/vmservice/vmservice_io.dart
@@ -86,11 +86,12 @@ Future<List<Map<String,String>>> listFilesCallback(Uri dirPath) async {
var stream = dir.list(recursive: true);
var result = [];
await for (var fileEntity in stream) {
+ var filePath = new Uri.file(fileEntity.path).path;
var stat = await fileEntity.stat();
if (stat.type == FileSystemEntityType.FILE &&
- fileEntity.path.startsWith(dirPathStr)) {
+ filePath.startsWith(dirPathStr)) {
var map = {};
- map['name'] = '/' + fileEntity.path.substring(dirPathStr.length);
+ map['name'] = '/' + filePath.substring(dirPathStr.length);
map['size'] = stat.size;
map['modified'] = stat.modified.millisecondsSinceEpoch;
result.add(map);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698