If target path points to a directory, deploy source file under that directory