| Index: dart/tools/testing/dart/http_server.dart
|
| diff --git a/dart/tools/testing/dart/http_server.dart b/dart/tools/testing/dart/http_server.dart
|
| index 720350e8d1dde1aa61df8afb19d324bf7092db38..93487632a58e1cc893704d24058799c3009d4dcd 100644
|
| --- a/dart/tools/testing/dart/http_server.dart
|
| +++ b/dart/tools/testing/dart/http_server.dart
|
| @@ -172,12 +172,12 @@ class TestingServers {
|
| "max-age=$_CACHE_EXPIRATION_IN_SECONDS");
|
| var path = _getFilePathFromRequestPath(request.uri.path);
|
| if (path != null) {
|
| - var file = new File.fromPath(path);
|
| + var file = new File(path.toNativePath());
|
| file.exists().then((exists) {
|
| if (exists) {
|
| _sendFileContent(request, response, allowedPort, path, file);
|
| } else {
|
| - var directory = new Directory.fromPath(path);
|
| + var directory = new Directory(path.toNativePath());
|
| directory.exists().then((exists) {
|
| if (exists) {
|
| _listDirectory(directory).then((entries) {
|
|
|