[issue2845] shutil.copy2() copies permission bits
Alexander Belopolsky
report at bugs.python.org
Wed May 14 16:49:09 CEST 2008
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
This seems to be a documentation issue.
"""
shutil.copy2(src, dst)
Similar to copy(), but last access time and last modification time are
copied as well. This is similar to the Unix command cp -p.
""" -- http://docs.python.org/dev/library/shutil.html#shutil.copy2
Does not mention permissions while
"""
$ pydoc shutil.copy2
shutil.copy2 = copy2(src, dst)
Copy data and all stat info ("cp -p src dst").
"""
implies that the permissions should be copied.
Maybe the documentation should simply recite the implementation: copy2
is copyfile follwed by copystat.
----------
nosy: +belopolsky
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2845>
__________________________________
More information about the Python-bugs-list
mailing list