Skip to content

Conversation

@Myestery
Copy link
Contributor

@Myestery Myestery commented Dec 8, 2025

Summary

Filter out hidden files (e.g., .DS_Store on macOS) from the /internal/files/{directory_type} endpoint response.

This fixes an issue where the LoadImageOutput node would fail to load an image on macOS because .DS_Store was returned as the first file in the output directory.

Background

This fix was originally attempted in the frontend repo (Comfy-Org/ComfyUI_frontend#7200), but filtering at the API level is the cleaner solution since it prevents invalid files from being returned to any client.

Test plan

  • On macOS with .DS_Store in the output folder, verify the file is no longer returned by /internal/files/output
  • Verify normal image/video files are still returned correctly

@Kosinkadink Kosinkadink added the Core Core team dependency label Dec 9, 2025
@Kosinkadink
Copy link
Collaborator

This will get tested/merged by comfy tomorrow/after whenever the next stable version comes out!

@comfyanonymous comfyanonymous merged commit 57ddb7f into comfyanonymous:master Dec 11, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Core Core team dependency

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants