ECMS-6344: Unexpected error when deleting files

Fix description:
- Does not move thumbnail folder when copy&paste an image in the same directory