If a file with the same name already exists in another directory, the file won't be saved. What's worse, it appears on the screen as if it had been saved.

Aperta
#17,832 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend, frontend

Direzione di ricerca

Start by tracing how ComfyUI identifies and saves workflows when Ctrl+S is pressed, then check whether the save path distinguishes files with the same name in different directories. Reproduce the steps with two folders containing wf_abc.json and verify whether each workflow saves independently. The issue does not name the relevant files or tests, so first locate the save handler and its existing coverage.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Potential Bug
Custom Node Testing
Expected Behavior

Press Ctrl+S to save and overwrite.

Actual Behavior

If a file with the same name exists in another directory, it will not be saved. To make matters worse, it appears on the screen as if it has been saved.

Example:
Workflow
 └ folder-a
  └ wf_abc.json
 └ folder-b
  └ wf_abc.json

wf_abc.json will not be saved in either directory.

Steps to Reproduce
  1. Create a sample workflow file in ComfyUI and save it. For this example, let’s name the file wf_abc.json.

  2. Place it in the following location using Windows Explorer:
    workflow
     └ folder-a
      └ wf_abc.json
     └ folder-b
      └ wf_abc.json

  3. In ComfyUI, open wf_abc.json in folder-a, make some changes to the workflow, and save it by pressing Ctrl+S.

  4. Next, in ComfyUI, open wf_abc.json in folder-b, make some changes to the workflow, and save it by pressing Ctrl+S.

  5. When you open wf_abc.json, you’ll find that only one of the two versions has been saved.

Debug Logs
none
Other

(The post I made a few days ago titled “Unable to Overwrite Files with Japanese 2-Byte Characters” was incorrect. I’m sorry. It seems the cause was actually this.)

Lingua principale
Python
Stelle
150k
Fork
17.9k
Merge medio
1g 1h
PR unite (30g)
181

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Comfy-Org/ComfyUI

Tutte le issue di Comfy-Org/ComfyUI

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.