Skip to content

Commit a4b9ff9

Browse files
committed
Recursively create library folder if it doesn't exist yet
1 parent 86799f1 commit a4b9ff9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dwds/test/fixtures/context.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,8 @@ class TestContext {
585585

586586
void addLibraryFile({required String libFileName, required String contents}) {
587587
final file = File(project.dartLibFilePath(libFileName));
588-
file.createSync();
588+
// Library folder may not exist yet, so create it.
589+
file.createSync(recursive: true);
589590
file.writeAsStringSync(contents);
590591
}
591592

0 commit comments

Comments
 (0)