Index: tools/html_json_doc/test/html_json_doc_test.dart |
diff --git a/tools/html_json_doc/test/html_json_doc_test.dart b/tools/html_json_doc/test/html_json_doc_test.dart |
index 4d721dcc9fd2db7720105978c5d1d98f1ececec9..352d2aa8b7e78d9cf9e927abb10509ead250b36c 100644 |
--- a/tools/html_json_doc/test/html_json_doc_test.dart |
+++ b/tools/html_json_doc/test/html_json_doc_test.dart |
@@ -81,7 +81,7 @@ Future _copyFiles(Path fromDir, Path toDir) { |
final lister = htmlDir.list(recursive: false); |
lister.onFile = (String path) { |
- final name = new Path.fromNative(path).filename; |
+ final name = new Path(path).filename; |
// Ignore private classes. |
if (name.startsWith('_')) return; |
@@ -100,4 +100,4 @@ Future _copyFiles(Path fromDir, Path toDir) { |
completer.complete(null); |
}; |
return completer.future; |
-} |
+} |