[issue6547] shutil.copytree fails on dangling symlinks

Tarek Ziadé report at bugs.python.org
Tue Apr 20 01:08:11 CEST 2010


Tarek Ziadé <ziade.tarek at gmail.com> added the comment:

> Ideally I feel it should create the same symlink pointing to a 
> possibly missing file, since that's what '/bin/cp' does, 
> and shutil.copytree is broadly understood as a drop in replacement..

That's what would happen if the symlink option is set to True.
When False, copytree() is supposed to copy the file pointed by the symlink, so copying the symlink as a fallback in case the file doesn't exists seems wrong to me in case symlink=False

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6547>
_______________________________________


More information about the Python-bugs-list mailing list