strange interaction between open and cwd

Ben Finney ben+python at benfinney.id.au
Mon May 3 21:12:49 EDT 2010


Baz Walter <bazwal at ftml.net> writes:

> On 03/05/10 18:41, Grant Edwards wrote:
> > Firstly, a file may have any number of paths (including 0).
>
> yes, of course. i forgot about hard links

Rather, you forgot that *every* entry that references a file is a hard
link.

To ask for a filesystem entry referencing the file contents *is* to ask
for a hard link; and there can be zero or more of those. The case where
there is exactly one of those for a given file is the special case, and
should not be assumed.

-- 
 \       “[Freedom of speech] isn't something somebody else gives you. |
  `\      That's something you give to yourself.” —_Hocus Pocus_, Kurt |
_o__)                                                         Vonnegut |
Ben Finney



More information about the Python-list mailing list