Skip to content

Commit 9175766

Browse files
committed
fix(extract-python): overwrite output in docling
1 parent 8babac9 commit 9175766

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎extract-python/extract_python/docling_.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,6 @@ def _to_markdown_doc(
182182
# nested in the tree structured
183183
md_dir_name = path_to_artifacts_dirname(input_path)
184184
md_dir = output_path / md_dir_name
185-
if md_dir.exists():
186-
raise FileExistsError(f"directory {md_dir} already exists")
187185
# Let's avoid issue of duplicated input file names flattened top level
188186
md_filename = md_dir_name + OutputFormat.MARKDOWN
189187
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as td:

0 commit comments

Comments
 (0)