It sounds as if you're trying to interact with the synced files directly. That's not how things work and if you try to fiddle around with them outside of Joplin, you will likely be asking for trouble.
In general, you're supposed to leave the synced folder/files alone and only use Joplin to interact with the synced data.
2 Likes