File tree Expand file tree Collapse file tree 2 files changed +7
-194
lines changed
testing/test_package_docs/fake Expand file tree Collapse file tree 2 files changed +7
-194
lines changed Original file line number Diff line number Diff line change @@ -264,14 +264,15 @@ class HtmlGeneratorInstance implements HtmlOptions {
264264 }
265265
266266 void _writeFile (String filename, String content) {
267- File f = _createOutputFile (out, filename);
268- f .writeAsStringSync (content);
269- _onFileCreated.add (f );
267+ File file = _createOutputFile (out, filename);
268+ file .writeAsStringSync (content);
269+ _onFileCreated.add (file );
270270 }
271271}
272272
273273File _createOutputFile (Directory destination, String filename) {
274- File f = new File (path.join (destination.path, filename));
275- if (! f.existsSync ()) f.createSync (recursive: true );
276- return f;
274+ File file = new File (path.join (destination.path, filename));
275+ Directory parent = file.parent;
276+ if (! parent.existsSync ()) parent.createSync (recursive: true );
277+ return file;
277278}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments