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

Modify LoadImage node to traverse subdirectories of the input directory #7199

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rewolf
Copy link

@rewolf rewolf commented Mar 12, 2025

Modify LoadImage node to also traverse subdirectories of the input directory

Previously the LoadImage node only displayed direct file contents of input_dir.

This change traverses the full directory tree under the input_dir using os.walk, including symlinks.

This allows users to organize their input files better and even redirect inputs to other locations on disks using symlinks, which is especially useful when there is limited space.

@rewolf rewolf requested a review from comfyanonymous as a code owner March 12, 2025 00:45
@rewolf rewolf changed the title Modify LoadImage node to also traverse subdirectories of the input di… Modify LoadImage node to traverse subdirectories of the input directory Mar 12, 2025
…rectory

Previously the LoadImage node only displayed direct file contents.

This change traverses the full directory tree under the `input_dir` using `os.walk`, including symlinks.
@rewolf rewolf force-pushed the rewolf/LoadImage-subdir_traversal branch from 2c42410 to ad1102f Compare March 12, 2025 07:03
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.

1 participant