ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Add `/api/v2/userdata` endpoint

Open benceruleanlu opened this issue 8 months ago • 0 comments

Second iteration of the /api/userdata endpoint. Now named /api/v2/userdata

Given an optional path query parameter, walks the specified sub‑directory of a user’s data directory and returns a JSON array of entries. Each entry is an object with:

  • name: file or directory name
  • type: "file" or "directory"
  • path: relative path under the user root
  • size & modified (for files only)

Ref: https://github.com/comfyanonymous/ComfyUI/pull/7759#pullrequestreview-2795134111

benceruleanlu avatar Apr 26 '25 15:04 benceruleanlu