Hello,
here's a small fix for _ic_rename(). The check that a folder is not renamed so
that it becomes a sub-folder of its own (e.g. renaming "A" to "A/B") is too
restrictive: It verifies that the old name is not a prefix of the new name,
but this also prohibits to rename "A" to "AB". The renaming is only illegal,
if the old name is a prefix of the new name _and_ a hierarchy separator "/"
immediately follows in the new name (otherwise the new name is not a
sub-folder of the old).
Regards,
Armin
here's a small fix for _ic_rename(). The check that a folder is not renamed so
that it becomes a sub-folder of its own (e.g. renaming "A" to "A/B") is too
restrictive: It verifies that the old name is not a prefix of the new name,
but this also prohibits to rename "A" to "AB". The renaming is only illegal,
if the old name is a prefix of the new name _and_ a hierarchy separator "/"
immediately follows in the new name (otherwise the new name is not a
sub-folder of the old).
Regards,
Armin