Skip to content

Commit 86ed8db

Browse files
author
Sven Siegmund
committed
doc: create dirs
1 parent 65f3194 commit 86ed8db

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ from rtfparse.renderers.de_encapsulate_html import De_encapsulate_HTML
5959
6060
source_path = Path(r"path/to/your/rtf/document.rtf")
6161
target_path = Path(r"path/to/your/html/de_encapsulated.html")
62+
# Create parent directory of `target_path` if it does not already exist:
63+
target_path.parent.mkdir(parents=True, exist_ok=True)
6264
6365
6466
parser = Rtf_Parser(rtf_path=source_path)

changelog.d/14.doc.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update `README.md`: Create parent directories of `target_path` if they don't already exist.

0 commit comments

Comments
 (0)