Something is renaming my files and folders
My Mac is renaming my files and folders with no interaction from me. I'm using terminal for most of my work, so this description uses terminal commands. For example, A program I wrote creates a folder 'FL_REV5' with hundreds of folders and files within. My program exits, then I type ls and see the folder. A few seconds later I type ls again, and it is now "FL_REV5 2". I type mv 'FL_REV5 2' FL_REV5. Another ls shows it renamed, and a few seconds later I have 'FL_REV5 2' again. A restart didn't help.
This happens to files too. I can't predict when it will happen or not happen. I think it started after the Sequoia 15.3.1 update, but I'm on 15.3.2 now. I'm seeing the problem mostly with files and folders produced by a python program, but I have also seen it happen to files produced by regular apps too. It happens when I rename the folder using Finder too: I can watch the name change back 2 seconds later.
A workaround is to copy the misnamed folder to ~/Downloads. A rename there sticks. Other than being a copy, the only difference I can think of is that my Downloads folder is not backed up by TimeMachine and is not synced with iCloud (my #1 suspicion).
What might be running on my Mac that renames existing files?
MacBook Air 13″