Index: lib/dartdoc/file_util.dart |
diff --git a/lib/dartdoc/frog/file_system.dart b/lib/dartdoc/file_util.dart |
similarity index 76% |
copy from lib/dartdoc/frog/file_system.dart |
copy to lib/dartdoc/file_util.dart |
index 5747c484751ecf2cfba04db3d6b944a08e3d8d39..814f2aae5bacf22bbdaad4926e818ce12647b5bd 100644 |
--- a/lib/dartdoc/frog/file_system.dart |
+++ b/lib/dartdoc/file_util.dart |
@@ -2,26 +2,14 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-/** Abstraction for file systems and utility functions to manipulate paths. */ |
-#library('file_system'); |
- |
/** |
- * Abstraction around file system access to work in a variety of different |
- * environments. |
+ * TODO(johnniwinther): Path manipulation copied from frog/file_system.dart. |
+ * Should be converted to use Path from dart:io when this is completed. |
*/ |
-interface FileSystem { |
- String readAll(String filename); |
- |
- void writeString(String outfile, String text); |
- |
- bool fileExists(String filename); |
+#library('file_util'); |
- void createDirectory(String path, [bool recursive]); |
- void removeDirectory(String path, [bool recursive]); |
-} |
- |
-/** |
- * Replaces all back slashes (\) with forward slashes (/) in [path] and |
+/** |
+ * Replaces all back slashes (\) with forward slashes (/) in [path] and |
* return the result. |
*/ |
String canonicalizePath(String path) { |