With current JUCE, It seems file rename/delete is inconsistent across platforms.
On macOS and Linux if you have a file open, you can rename it or delete it.
Windows will fail due to a missing flag.
It’ll be nice if you could add the missing flag -
I’ve also made a test to make sure behavior is consistent (attached is the Projucer PIP).
It’s a modified JUCE playback code with additional thread that renames a file.
(I’ve also tested deletion behavior)
SharedAudioFileAccess.h (9.5 KB)