This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: shutil.copytree: Give the option to disable copystat
Type: enhancement Stage: patch review
Components: Library (Lib) Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: doronbehar, jaraco
Priority: normal Keywords: patch

Created on 2021-10-21 20:20 by doronbehar, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 29130 open doronbehar, 2021-10-21 20:24
Messages (2)
msg407053 - (view) Author: Jason R. Coombs (jaraco) * (Python committer) Date: 2021-11-26 14:21
Can you provide a description of what motivated you to change the behavior or what benefits this change would have for you or others? Do you know why others haven’t reported this need previously?
msg407175 - (view) Author: Doron Behar (doronbehar) * Date: 2021-11-27 23:01
> Can you provide a description of what motivated you to change the behavior or what benefits this change would have for you or others?

Sometimes, you wish to copy a whole directory from a read-only file system and you don't want it to be read-only in the destination.

> Do you know why others haven’t reported this need previously?

On NixOS all of the files that belong to packages are read-only. I encountered the need for this feature in GNURadio, at:

https://github.com/gnuradio/gnuradio/pull/5227

The following Stack overflow question also suggests the need for this functionality is a bit common:

https://stackoverflow.com/a/17022146/4935114
History
Date User Action Args
2022-04-11 14:59:51adminsetgithub: 89721
2021-11-27 23:01:38doronbeharsetmessages: + msg407175
2021-11-26 14:21:31jaracosetnosy: + jaraco
messages: + msg407053
2021-10-21 20:24:10doronbeharsetkeywords: + patch
stage: patch review
pull_requests: + pull_request27406
2021-10-21 20:20:18doronbeharcreate