랭귀지/python

python 파일 복사

유키공 2018. 11. 21. 14:13

python file copy

import shutil
shutil.copy2('/src/dir/file.ext', '/dst/dir/newname.ext') 
shutil.copy2('/src/file.ext', '/dst/dir')