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

Unified Diff: pkg/http_server/lib/src/virtual_directory.dart

Issue 17550004: Use toNativePath() in http_server pkg, to get the native path string on Windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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: pkg/http_server/lib/src/virtual_directory.dart
diff --git a/pkg/http_server/lib/src/virtual_directory.dart b/pkg/http_server/lib/src/virtual_directory.dart
index a09613527008cdebc12d9ea51a3f1192fe9c0cbd..680781e1c501eef310b210944639686fd49e596f 100644
--- a/pkg/http_server/lib/src/virtual_directory.dart
+++ b/pkg/http_server/lib/src/virtual_directory.dart
@@ -87,7 +87,7 @@ class _VirtualDirectory implements VirtualDirectory {
Future<FileSystemEntity> _locateResource(Path path,
Iterable<String> segments) {
- return FileSystemEntity.type(path.toString(), followLinks: false)
+ return FileSystemEntity.type(path.toNativePath(), followLinks: false)
.then((type) {
switch (type) {
case FileSystemEntityType.FILE:
@@ -108,7 +108,6 @@ class _VirtualDirectory implements VirtualDirectory {
// TODO
}
break;
-
}
// Return `null` on fall-through, to indicate NOT_FOUND.
return null;
« 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