Window.FileSelector - any way to update folder listing?

I’m writing a script that needs to allow the user to save xml data files, using fileselector to choose a filename. The script potentially does this several times while it runs.

The problem is that fileselector doesn’t seem to update its list of files after saving a data file. If I save a file and run fileselector again, it won’t display the newly created file until I switch to a different directory and navigate back.

I suspect that fileselector is only updated when the user opens or saves a Blender file manually. Is this correct? Any workarounds (any old hack should do in this case…)?

Sometimes it is better not to reply.

10th attempt. but sometimes i just cannot help it.

u trying to hack me lol…