Chromium Code Reviews| Index: lib/src/compiler.dart |
| diff --git a/lib/src/compiler.dart b/lib/src/compiler.dart |
| index 61c568591624e3a99238c4a54937cf2f6f85bcf8..6f1288e616d6f1ef6813f76edc9f4d8ee0314f3b 100644 |
| --- a/lib/src/compiler.dart |
| +++ b/lib/src/compiler.dart |
| @@ -305,7 +305,9 @@ class BatchCompiler extends AbstractCompiler { |
| } |
| } |
| - new File(getOutputPath(source.uri)).openSync(mode: FileMode.WRITE) |
| + var outputFile = getOutputPath(source.uri); |
| + var file = new File(outputFile)..createSync(recursive: true); |
| + file.openSync(mode: FileMode.WRITE) |
|
Jennifer Messerly
2016/01/29 16:49:49
silly style nit: curious about the mix between cas
vsm
2016/01/29 18:13:51
Done.
|
| ..writeStringSync(document.outerHtml) |
| ..writeStringSync('\n') |
| ..closeSync(); |