Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8abf0a90
Commit
8abf0a90
authored
Jan 06, 2008
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#1559684: document that shutil.copy* doesn't copy all metadata on Posix and Windows too.
parent
6497afed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
Doc/library/shutil.rst
Doc/library/shutil.rst
+13
-8
No files found.
Doc/library/shutil.rst
View file @
8abf0a90
...
...
@@ -18,15 +18,20 @@ copying and removal. For operations on individual files, see also the
.. warning::
On MacOS, the resource fork and other metadata are not used. For file copies,
this means that resources will be lost and file type and creator codes will
not be correct.
Even the higher-level file copying functions (:func:`copy`, :func:`copy2`)
can't copy all file metadata.
On POSIX platforms, this means that file owner and group are lost as well
as ACLs. On MacOS, 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.
.. function:: copyfile(src, dst)
Copy the contents
of the file named *src* to a file named *dst*. The
destination location must be writable; otherwise, an :exc:`IOError` exception
Copy the contents
(no metadata) of the file named *src* to a file named *dst*.
The
destination location must be writable; otherwise, an :exc:`IOError` exception
will be raised. If *dst* already exists, it will be replaced. Special files
such as character or block devices and pipes cannot be copied with this
function. *src* and *dst* are path names given as strings.
...
...
@@ -114,7 +119,7 @@ copying and removal. For operations on individual files, see also the
Recursively move a file or directory to another location.
If the destination is on
our
current filesystem, then simply use rename.
If the destination is on
the
current filesystem, then simply use rename.
Otherwise, copy src to the dst and then remove src.
.. versionadded:: 2.3
...
...
@@ -122,7 +127,7 @@ copying and removal. For operations on individual files, see also the
.. exception:: Error
This exception collects exceptions that raised during a mult-file operation. For
This exception collects exceptions that raised during a mult
i
-file operation. For
:func:`copytree`, the exception argument is a list of 3-tuples (*srcname*,
*dstname*, *exception*).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment