I was trying to revert my changes back to using directories instead of symlinks and now it happens in the directories too, but only some of them. This is really strange.
Now none of my content subdirectories are symlinks anymore, but some of them I’m able to move drafts between listed/unlisted with no problem, the other ones give an error.
I compared filesystem permissions between both directories and they’re the same. I even
chmod 777 on the problematic ones to check but the problem persists.
I should mention I’m running Kirby 3.3.5, not sure if that’s relevant.
What’s the recommended umask to use with content folders? is there a panel cache I can clear or something?
UPDATE: I’ve traced the issue down to the face that php
rename here is returning true, and for some reason this always evaluates it to false. I’m not sure why this is happening, it’s quite strange
UPDATE 2: It seems to be related to the size of the directory. This particularly problematic content directory has about 550 subdirectories (page entries). In a test, I moved everything out and kept only a handful of directories and now the problem disappears