pieces:python:复制文件夹
import shutil # Copy src to dst. (cp src dst) shutil.copy(src, dst) # Copy files, but preserve metadata (cp -p src dst) shutil.copy2(src, dst) # Copy directory tree (cp -R src dst) shutil.copytree(src, dst) # Move src to dst (mv src dst) shutil.move(src, dst)
pieces/python/复制文件夹.txt · 最后更改: 2020/12/01 23:01 由 plough