Message225803
See also issue15795. It would be good to make shutil, zipfile and tarfile interfaces consistent.
I think we need more graduated interface matching coretools.
"""
--preserve[=ATTR_LIST]
preserve the specified attributes (default: mode,ownership,timestamps), if possible additional attributes: context, links, xattr, all
--no-preserve=ATTR_LIST
don't preserve the specified attributes
"""
This means that we should add preserve_mode, preserve_ownership, preserve_time, etc parameters. preserve_ownership should control also copying of suid/sgid/sticky bits. copy()'s defaults will be preserve_mode=True, preserve_ownership=False, preserve_time=False, copy2()'s defaults (corresponding to "cp -p" behavior) will be preserve_mode=True, preserve_ownership=True, preserve_time=True. |
|
Date |
User |
Action |
Args |
2014-08-24 08:42:33 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, georg.brandl, pitrou, larry, christian.heimes, benjamin.peterson, tarek, Arfrever, milko.krachounov, neologix, hynek |
2014-08-24 08:42:33 | serhiy.storchaka | set | messageid: <1408869753.58.0.0672665760713.issue17180@psf.upfronthosting.co.za> |
2014-08-24 08:42:33 | serhiy.storchaka | link | issue17180 messages |
2014-08-24 08:42:33 | serhiy.storchaka | create | |
|