* filer: test the rename subdirectory check through CanRename
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* filer: reuse IsEqualOrUnder for the rename subdirectory check
A trailing slash on the old name made the source path end in a slash,
so a child of the source was no longer seen as under it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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>