It is an interesting use case because it reliably recreate on windows the OSERROR 32
ERROR: Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus. (os error 32): remove 'C:\Users\chris\AppData\Local\Temp\quarto\test_quarto\.quarto'
I'll have a look in this.
Originally posted by @cderv in #13623
See the reprex in the above issue that does recreate the issue each time.