File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 5959 src_path = os .path .join (src_base , src_rel_path )
6060 dst_path = os .path .join (dst_base , dst_rel_path )
6161
62- if os .path .isdir (src_path ):
63- shutil .copytree (src_path , dst_path )
64- else :
65- shutil .copy2 (src_path , dst_path )
62+ if os .path .exists (src_path ):
63+ if os .path .isdir (src_path ):
64+ shutil .copytree (src_path , dst_path )
65+ else :
66+ shutil .copy2 (src_path , dst_path )
Original file line number Diff line number Diff line change 6363 src_path = os .path .join (src_base , src_rel_path )
6464 dst_path = os .path .join (dst_base , dst_rel_path )
6565
66- if os .path .isdir (src_path ):
67- shutil .copytree (src_path , dst_path )
68- else :
69- shutil .copy2 (src_path , dst_path )
66+ if os .path .exists (src_path ):
67+ if os .path .isdir (src_path ):
68+ shutil .copytree (src_path , dst_path )
69+ else :
70+ shutil .copy2 (src_path , dst_path )
You can’t perform that action at this time.
0 commit comments