Index: lib/src/template/file_system.dart |
diff --git a/lib/src/template/file_system.dart b/lib/src/template/file_system.dart |
index 99731c42a66d834dfec03dde10daf71aff99d96b..39ae446532e0bde0a9915d4497435f382c9f1666 100644 |
--- a/lib/src/template/file_system.dart |
+++ b/lib/src/template/file_system.dart |
@@ -12,8 +12,17 @@ library file_system; |
* environments. |
*/ |
interface FileSystem { |
- String readAll(String filename); |
+ /** |
+ * Apply all pending writes. Until this method is called, writeString is not |
+ * guaranteed to have any observable impact. |
+ */ |
+ Future flush(); |
+ Future<String> readAll(String filename); |
+ |
+ /** |
+ * Writes [text] to [outfile]. Call flush to insure that changes are visible. |
+ */ |
void writeString(String outfile, String text); |
void createDirectory(String path, [bool recursive]); |