Re: os.link makes a copy, not a link

2006-06-10 Thread Nick Craig-Wood
Dan M [EMAIL PROTECTED] 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?

Re: os.link makes a copy, not a link

2006-06-10 Thread Nick Craig-Wood
Carl Banks [EMAIL PROTECTED] wrote: 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

Re: os.link makes a copy, not a link

2006-06-10 Thread [EMAIL PROTECTED]
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

os.link makes a copy, not a link

2006-06-09 Thread Dan M
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 --

Re: os.link makes a copy, not a link

2006-06-09 Thread Carl Banks
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

Difference between copy and link (was: Re: os.link makes a copy, not a link)

2006-06-09 Thread Ben Finney
Dan M [EMAIL PROTECTED] writes: 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? Are you