Feature Request: Automatic Temporary Import and Cleanup of LoRA Files from External Folders
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 153
Description
### Feature Idea
Add a feature to ComfyUI that allows users to select LoRA files from external folders (such as their Stable Diffusion LoRA directory). When a LoRA is selected, ComfyUI should automatically copy or link the file into its own LoRA directory for use. Once the LoRA is no longer in use, ComfyUI should automatically remove the temporary copy to save disk space and avoid duplicate files. This would eliminate the need for manual copying and cleanup, streamline workflow, and reduce storage usage.
### Existing Solutions
Currently, users must manually copy or symlink LoRAs between Stable Diffusion and ComfyUI folders. No automated solution exists in the core ComfyUI interface. Some users may have custom scripts or use symlinks, but these are not user-friendly or integrated into the UI.
### Other
This feature could optionally use symlinks instead of file copies when supported by the operating system, and provide user prompts to confirm deletion if a LoRA is still in use. It could greatly improve the experience for users who work with multiple UIs and many LoRA files.
Contributor guide
Assessment
This issue has not been assessed yet.