make file if not found (#17359)
Fotis Voutsas committed
Apr 10, 2024 at 09:32 UTC
f9fc794feb1d9abb416f897b1cef17dbb3a0dda8
1 file changed
+2
integrations/gen_docs_integrations.py
+2
@@ -335,6 +335,8 @@ def make_symlinks(symlink_dict):
335
takes a dictionary with directories that have a 1:1 relationship between their README and the integration (only one) inside the "integrations" folder.
336
"""
337
for element in symlink_dict:
338
+ if not Path(f'{element}/README.md').exists():
339
+ Path(f'{element}/README.md').touch()
340
try:
341
# Remove the README to prevent it being a normal file
342
Path(f'{element}/README.md').unlink()