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.

作者 petri.lehtinen
收信人 eric.araujo, hynek, petri.lehtinen, tarek
日期 2011-08-09.14:50:39
SpamBayes Score 0.006342184
Marked as misclassified
Message-id <1312901440.45.0.0873680103604.issue12715@psf.upfronthosting.co.za>
In-reply-to
内容
> Doing what UNIX’ cp program does would be best here.

$ cp --version
cp (GNU coreutils) 8.5

$ touch file
$ ln -s file link_to_file 
$ mkdir directory
$ ln -s directory link_to_directory
$ cp -a link_to_file link_to_directory
$ ls -l directory
lrwxrwxrwx 1 user user 4 2011-08-09 17:46 link_to_file -> file

So at least cp from GNU coreutils seems to copy the link into the directory, dereferencing the dst link.
历史
日期 用户 动作 参数
2011-08-09 14:50:40petri.lehtinen修改recipients: + petri.lehtinen, tarek, eric.araujo, hynek
2011-08-09 14:50:40petri.lehtinen修改messageid: <1312901440.45.0.0873680103604.issue12715@psf.upfronthosting.co.za>
2011-08-09 14:50:39petri.lehtinen链接issue12715 messages
2011-08-09 14:50:39petri.lehtinen创建