Skip to content

Automatically create directory for Save X nodes#2691

Merged
joeyballentine merged 1 commit intochaiNNer-org:mainfrom
RunDevelopment:auto-create-dir
Mar 20, 2024
Merged

Automatically create directory for Save X nodes#2691
joeyballentine merged 1 commit intochaiNNer-org:mainfrom
RunDevelopment:auto-create-dir

Conversation

@RunDevelopment
Copy link
Member

Since all Save X nodes write files, they might as well create the directory they save the file in as well. Save Image already did this, but the others didn't. I added this feature via an optional create: bool parameter on DirectoryInput, so we don't need to duplicate must_exist=False and dir.mkdir(parents=True, exist_ok=True) everywhere.

This is preparation for directory nodes.

@joeyballentine joeyballentine merged commit d77cc8b into chaiNNer-org:main Mar 20, 2024
@RunDevelopment RunDevelopment deleted the auto-create-dir branch March 20, 2024 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants