File folder on external volume

From this File().rename() ne renomme pas :

It seems rename() fails with “external” volumes (I tried USB key, afp, smb, NAS). I’m wondering why, is it me, under progress, normal behaviour, bug?

Windows or macOS ?

MacOS, I didn’t try on windows.

PS: but if someone is willing to test on windows, he’s welcome… The code I used is here