Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically create directory for Save X nodes #2691

Merged
merged 1 commit into from Mar 20, 2024

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
14 checks passed
@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.

None yet

2 participants