add judgement whether cp File