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

Unified Diff: dart/samples/dartiverse_search/main.dart

Issue 57813002: Version 0.8.10.3 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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
Index: dart/samples/dartiverse_search/main.dart
===================================================================
--- dart/samples/dartiverse_search/main.dart (revision 29794)
+++ dart/samples/dartiverse_search/main.dart (working copy)
@@ -92,7 +92,7 @@
print('${rec.level.name}: ${rec.time}: ${rec.message}');
});
- var buildPath = Platform.script.resolve('build').path;
+ var buildPath = Platform.script.resolve('build').toFilePath();
if (!new Directory(buildPath).existsSync()) {
log.severe("The 'build/' directory was not found. Please run 'pub build'.");
return;
@@ -116,7 +116,7 @@
virDir.directoryHandler = (dir, request) {
// Redirect directory-requests to index.html files.
var indexUri = new Uri.file(dir.path).resolve('index.html');
- virDir.serveFile(new File(indexUri.path), request);
+ virDir.serveFile(new File(indexUri.toFilePath()), request);
};
virDir.serve(router.defaultStream);
});
« no previous file with comments | « dart/samples/dartiverse_search/github_search_engine.dart ('k') | dart/samples/dartiverse_search/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698