ENYO-2950: there is condition to check srcPath & dstPath above in the same function

Enyo-DCO-1.1-Signed-off-by: Junil Kim <logyourself@gmail.com>