New submission from Zoltan Vajda <vzvz...@gmail.com>: 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 <rep...@bugs.python.org> <https://bugs.python.org/issue47049> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com