[issue45558] shutil.copytree: Give the option to disable copystat
Change by Doron Behar : -- components: Library (Lib) nosy: doronbehar priority: normal severity: normal status: open title: shutil.copytree: Give the option to disable copystat type: enhancement versions: Python 3.11 ___ Python tracker <https://bugs.python.org/issue45558> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45558] shutil.copytree: Give the option to disable copystat
Change by Doron Behar : -- keywords: +patch pull_requests: +27406 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29130 ___ Python tracker <https://bugs.python.org/issue45558> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45558] shutil.copytree: Give the option to disable copystat
Doron Behar added the comment: > 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 -- ___ Python tracker <https://bugs.python.org/issue45558> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com