When I try to rename a folder that contains a git repo in some subfolder, I get a popup "An error occurred renaming [folder]: Access is denied. (5)"
I think this is caused by the fact that I use TortoiseGit, which shows status icon overlays, since renaming works when I shut down the git status cache process. Maybe that process is just locking the folder, but there are two other details:
I can still move the folders or subfolders with the repos.
If you show the folder in Opus (so it’s already visible), then rename it in Explorer, and then try to rename it a second time in Opus, does that work, or still only show an error in Opus?
If I have the folder highlighted in Opus while renaming with Explorer, I can move back to the Opus window and successfully rename the folder. Once I click on another folder and back to the one in question, I get the error again when I try to rename it.
That probably means it fails if you try to rename it immediately after loading the folder, while the folder and contents are being used to generate columns or icon overlays (e.g. to show the source-control state of the files).
As a test, try opening the folder in Opus, then wait a few minutes and try to rename it.
If that works, how to avoid waiting will depend on what exactly is causing the delay:
Which file display columns are turned on, for example? Does turning them off (before reading the folder) make a difference?
Or does setting Preferences / File Display Columns / Icons / Show generic icons for: All Folders make a difference?
Just to be clear what I'm describing (since I realize I might not have described it right): if I have a git repo in a folder, the parent of that folder can't be renamed. For example, if I have the structure:
Parent
-> Repo
-> -> .git
The "Repo" has an overlay on the folder icon, but I can rename it any time. The "Parent" folder doesn't have an overlay, but usually can't be renamed.
Mostly I can't rename "Parent", but sometimes after moving folders around or killing the git status cache process, I can, and it still works for some time after that.
Regarding the latest questions:
I tried having the folder highlighted for a few minutes, but I still can't rename it.
I don't have any status display columns turned on, only Name, Size, Type and Modified. The overlays are drawn directly on the folder icons.
If I set "Show generic icons" to "All Folders", the overlays disappear from the file list, but not the folder tree. Renaming doesn't immediately work, but if I get it working by renaming in Explorer, it seems to keep working after that.