Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Add check before trying to create directory

davidmezzettia7d9f3f7e017
diff --git a/src/python/txtai/embeddings/archive.py b/src/python/txtai/embeddings/archive.py
index 99a82b13..c96753e9 100644
--- a/src/python/txtai/embeddings/archive.py
+++ b/src/python/txtai/embeddings/archive.py
@@ -86,7 +86,9 @@ class Archive:
compression = self.compression(path)
# Create output directory, if necessary
- os.makedirs(os.path.dirname(path), exist_ok=True)
+ output = os.path.dirname(path)
+ if output:
+ os.makedirs(output, exist_ok=True)
# Zip files
if compression == "zip":