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 6767 src_path = os .path .join (src_base , src_rel_path )
6868 dst_path = os .path .join (dst_base , dst_rel_path )
6969
70- if os .path .isdir (src_path ):
71- shutil .copytree (src_path , dst_path )
72- else :
73- shutil .copy2 (src_path , dst_path )
70+ if os .path .exists (src_path ):
71+ if os .path .isdir (src_path ):
72+ shutil .copytree (src_path , dst_path )
73+ else :
74+ shutil .copy2 (src_path , dst_path )
You can’t perform that action at this time.
0 commit comments