Files & processes · BUILT-IN MODULE
shutil
Filesystem copy/move helpers.
Quick start
use shutil
try shutil.mkdir "backup"
try shutil.copy "app.se" "backup/app.se"API reference
shutil.copy source targetCopy a file. Fallible.
複製檔案。此操作可能失敗。
shutil.move source targetMove or rename a path. Fallible.
移動或重新命名路徑。此操作可能失敗。
shutil.copytree source targetRecursively copy a directory. Fallible.
遞迴複製目錄。此操作可能失敗。
shutil.remove pathRemove a path tree. Fallible.
移除 a path tree. 此操作可能失敗。
shutil.mkdir pathCreate directories. Fallible.
建立目錄。此操作可能失敗。