Primary
shutil ⚬⃕ᵖʸ|Documentation|1st|20251021204857-00-⌔
shutil — High-level file operations — Python 3 documentation
shutil— High-level file operationsSource code: Lib/shutil.py
The
shutilmodule offers a number of high-level operations on files and collections of files. In particular, functions are provided which support file copying and removal. For operations on individual files, see also theosmodule.Warning: Even the higher-level file copying functions (
shutil.copy(),shutil.copy2()) cannot copy all file metadata.On POSIX platforms, this means that file owner and group are lost as well as ACLs. On Mac OS, the resource fork and other metadata are not used. This means that resources will be lost and file type and creator codes will not be correct. On Windows, file owners, ACLs and alternate data streams are not copied.
Printed 2026-06-28.
(echo:: @ ᯤ)
Link to original
Secondary
• • •