expose input options
Open
Feature
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 158
Description
### Feature Idea
there is no way to get a list of input files in sub-folders, uploading to and loading from sub-directories is fully functional, there is just no way to list them.
even 1st directory files are only exposed through api/object_info.
### Existing Solutions
`@routes.get("/inputs")
def list_inputs(request):
input_dir = folder_paths.get_input_directory()
try:
files, _ = folder_paths.recursive_search(input_dir, excluded_dir_names=[".git"])
return web.json_response(files)
except OSError as e:
return web.json_response({"error": str(e)}, status=500)`
### Other
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.