From 8752fb61b1a53c4044f13bffb9667e5ecc7cc6e3 Mon Sep 17 00:00:00 2001 From: Niklaus Mosimann Date: Thu, 30 Mar 2023 08:28:08 +0200 Subject: [PATCH] Do not create target directory upon initializing a collection --- sphinxcontrib/collections/collections.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/sphinxcontrib/collections/collections.py b/sphinxcontrib/collections/collections.py index 3f8e980..2a2248a 100644 --- a/sphinxcontrib/collections/collections.py +++ b/sphinxcontrib/collections/collections.py @@ -81,9 +81,6 @@ def __init__(self, app, name, **kwargs): os.makedirs(collection_main_folder, exist_ok=True) target = os.path.join(collection_main_folder, target) - if not os.path.exists(os.path.dirname(target)): - os.makedirs(os.path.dirname(target), exist_ok=True) - self.target = target clean = kwargs.get("clean")