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.

Author petri.lehtinen
Recipients eric.araujo, hynek, petri.lehtinen, tarek
Date 2011-08-09.14:50:39
SpamBayes Score 0.00634218
Marked as misclassified No
Message-id <>
> 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.
Date User Action Args
2011-08-09 14:50:40petri.lehtinensetrecipients: + petri.lehtinen, tarek, eric.araujo, hynek
2011-08-09 14:50:40petri.lehtinensetmessageid: <>
2011-08-09 14:50:39petri.lehtinenlinkissue12715 messages
2011-08-09 14:50:39petri.lehtinencreate