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

Unified Diff: lib/dartdoc/file_util.dart

Issue 10701091: Dartdoc and Apidoc updated to use dart2js through the mirror system. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed cf. rnystrom's comments. Created 8 years, 5 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
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) {

Powered by Google App Engine
This is Rietveld 408576698