os.link makes a copy, not a link

wittempj@hotmail.com martin.witte at gmail.com
Sat Jun 10 06:00:58 EDT 2006


I had good results with os.symlink on Solaris, see
http://docs.python.org/lib/os-file-dir.html
Dan M wrote:
> I'm a little bit confused. According to the sources I've looked at on the
> net,
>     os.link('file1', 'file2')
> should make a hard link from file1 to file2. But what I'm finding is that
> it's actually making a copy. Am I forgetting a step or something?
> 
> Python 2.3.4 running on CentOS 4.3




More information about the Python-list mailing list