When renaming a file, moving to another directory is not allowed.

Just added the validation. Please review.

Regards,
benitux