Skip to content

Commit

Permalink
fix create module parent directories
Browse files Browse the repository at this point in the history
  • Loading branch information
mirpedrol committed Dec 11, 2023
1 parent e931f2a commit 2cbe69a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nf_core/components/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def _render_template(self):

# Write output to the target file
log.debug(f"Writing output to: '{dest_fn}'")
dest_fn.parent.mkdir(exist_ok=True)
dest_fn.parent.mkdir(exist_ok=True, parents=True)
with open(dest_fn, "w") as fh:
log.debug(f"Writing output to: '{dest_fn}'")
fh.write(rendered_output)
Expand Down

0 comments on commit 2cbe69a

Please sign in to comment.