When no directory , make shutil not fail.