Skip to content

Commit fba6d1b

Browse files
committed
Create more subdirectories for new namespace
1 parent 16c4516 commit fba6d1b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/service/namespace.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ def create_namespace(self, name: str) -> dict:
2020
if os.path.exists(home_path):
2121
raise FileExistsError("Namespace already exists")
2222

23+
# Prepare the namespace directory structure.
2324
os.makedirs(os.path.join(home_path, "voices"), exist_ok=True)
2425
os.makedirs(os.path.join(home_path, "outputs"), exist_ok=True)
26+
os.makedirs(os.path.join(home_path, "training-audios"), exist_ok=True)
27+
os.makedirs(os.path.join(home_path, "models"), exist_ok=True)
28+
2529
namespace = {"name": name, "createdAt": int(datetime.now(tz=timezone.utc).timestamp() * 1000), "homePath": home_path}
2630
self._save_namespace_metadata(namespace)
2731
return namespace

0 commit comments

Comments
 (0)