CanRename rejected a move whenever the new parent directory's path started
with the source path as a plain string, so moving /dir/a into /dir/a.d
(or anything under /dir/ab) failed with "can not move directory to a
subdirectory of itself". Check the path boundary instead: reject only
when the new parent is the source itself or lies under it.
Claude-Session: https://claude.ai/code/session_01VncHKTehVroSAzRMUHykEX
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>