[issue47049] Incorrect shutil.copytree() behaviour with symlinks

2022-04-04 Thread Zoltan Vajda


Zoltan Vajda  added the comment:

Because I am a first contributor, the automatic quality checks on GitHub have 
to be manually started by somebody. How can I reqest this and by whom?

--
type:  -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47049] Incorrect shutil.copytree() behaviour with symlinks

2022-03-17 Thread Zoltan Vajda


Change by Zoltan Vajda :


--
keywords: +patch
pull_requests: +30055
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/31967

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47049] Incorrect shutil.copytree() behaviour with symlinks

2022-03-17 Thread Zoltan Vajda

New submission from Zoltan Vajda :

shutil.copytree incorrectly does not copy symlink contents if called
with symlink=False and ignore_dangling_symlinks=True.

The wrong behaviour can be reproduced like this:

$ tree
.
└── a
├── a.txt
└── b
└── a.txt -> ../a.txt

$ python3 -c "import shutil;shutil.copytree('a/b', 'c', symlinks=False, 
ignore_dangling_symlinks=True)"

As a result directoy c will be created but it will remain empty.
Expected result is a file c/a.txt with the contents of a/b/a.txt.

--
components: Library (Lib)
messages: 415437
nosy: vajdaz
priority: normal
severity: normal
status: open
title: Incorrect shutil.copytree() behaviour with symlinks
versions: Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com