Skip to content

Commit

Permalink
fixed bug where workspace dir didnt exist when importing
Browse files Browse the repository at this point in the history
  • Loading branch information
kayler-renslow committed Feb 2, 2018
1 parent 0105f9a commit f1c041f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*

**Fixed:**
* PreprocessorTest was failing because files didn't exist.
*

**Notes:**
* June 23:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ public class HeaderToProject {
@NotNull
public static List<KeyValue<String, File>> convertAndSaveToWorkspace(@NotNull File workspaceDir, @NotNull File descExt, @NotNull HeaderToProject.ConversionCallback c)
throws HeaderConversionException {
if (!workspaceDir.exists()) {
workspaceDir.mkdirs();
}
return new HeaderToProject(new Workspace(workspaceDir), descExt, c).run();
}

Expand Down

0 comments on commit f1c041f

Please sign in to comment.