Re: how to detect a hard link in Java?
- From: "Monique Y. Mudama" <spam@xxxxxxxxxxxxxxxx>
- Date: Tue, 30 Aug 2005 21:40:58 -0600
On 2005-08-31, Andrew Thompson penned:
> On 30 Aug 2005 18:39:47 -0700, jojo wrote:
>
>> I have an application need to detect the hard links ...
>
> What's a 'soft link'?
Serious question, or are you just pointing out that this is
OS-dependent?
On a unix system the difference is between 'ln -s' vs 'ln' ... off the
top of my head ...
Hrm. It's hard to explain off the top of my head, even though I know
the difference at a gut level.
If you create hard links to a filename, each hard link is just as
valid as the original filename. It's just as proper to say that
hardlink1 "is" the file as it is to say that filename "is" the file.
When all hard links are removed, the file is deleted. A soft link, on
the other hand, is a pointer to a filename ... in fact, a soft link
may even be sensitive to relative path location, and will break if you
move the original file.
Hrm. Clear as mud. It's clear in my head =/
--
monique
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
.
- Follow-Ups:
- Re: how to detect a hard link in Java?
- From: Andrew Thompson
- Re: how to detect a hard link in Java?
- References:
- how to detect a hard link in Java?
- From: jojo
- Re: how to detect a hard link in Java?
- From: Andrew Thompson
- how to detect a hard link in Java?
- Prev by Date: Adding session variables to a JAX-RPC SOAP POJO?
- Next by Date: Re: Exception NumberFormatException when creating an instance of JFileChooser
- Previous by thread: Re: how to detect a hard link in Java?
- Next by thread: Re: how to detect a hard link in Java?
- Index(es):
Relevant Pages
|