Skip to content

Commit b394ab4

Browse files
committed
Adds video directory configuration and ensures its creation
1 parent 988632a commit b394ab4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/chattr/app/settings.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ class DirectorySettings(BaseModel):
8383
assets: DirectoryPath = Path.cwd() / "assets"
8484
log: DirectoryPath = Path.cwd() / "logs"
8585
audio: DirectoryPath = assets / "audio"
86+
video: DirectoryPath = assets / "video"
8687
prompts: DirectoryPath = assets / "prompts"
8788

8889
@model_validator(mode="after")
@@ -95,7 +96,14 @@ def create_missing_dirs(self) -> Self:
9596
Returns:
9697
Self: The validated DirectorySettings instance.
9798
"""
98-
for directory in [self.base, self.assets, self.log, self.audio, self.prompts]:
99+
for directory in [
100+
self.base,
101+
self.assets,
102+
self.log,
103+
self.audio,
104+
self.video,
105+
self.prompts,
106+
]:
99107
if not directory.exists():
100108
try:
101109
directory.mkdir(exist_ok=True)

0 commit comments

Comments
 (0)