Re: how to detect a hard link in Java?



On Tue, 30 Aug 2005 21:40:58 -0600, Monique Y. Mudama wrote:

> 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,

Yep.

>..or are you just pointing out that this is
> OS-dependent?

Unfortunately I trimmed the part indicating OS
specific, but I understood that. No, I suppose if
I had any point, it would have been 'when dealing
with OS specific stuff, give a few wrods description
of what you mean', beyond 'like the help wizard in Word'..

> 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 =/

OK. (chuckles) It least it clarifies that 'getCanonicalPath'
is not the answer to this one..

--
Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
"We're gonna' fuss and fight till daylight."
Koko Taylor 'Wang Dang Doodle'
.



Relevant Pages

  • Re: Re: Job Depends On This
    ... >>> Windows XP that users probably don't know but could probably ... >> floppy they lose the 10MB ADS attached to that file. ... you can create soft links and hard links. ... Deleting a soft link ...
    (microsoft.public.windowsxp.general)
  • Re: Mapping a directory to another for a non-privileged user
    ... path is referenced in some of the tools, including some binaries. ... not allowed to create soft or hard links in system directories. ... create a soft link /tmp/shahswimtools pointing to the actual directory ... directory will not work easily with many freeware utilities I pick off ...
    (comp.unix.admin)
  • Re: [SLE] How to identify a hard link from a soft link?
    ... link is another file name to the same physical file on disk. ... special file containing the path to a regular file. ... But for hard links I do not see any such special mark except that ... Every item in a directory is a hard link, unless it's a soft link. ...
    (SuSE)
  • Re: how to detect a hard link in Java?
    ... It's hard to explain off the top of my head, ... If you create hard links to a filename, each hard link is just as ... A soft link, on ...
    (comp.lang.java.programmer)
  • Re: how to detect a hard link in Java?
    ... >>> I have an application need to detect the hard links ... ... It's hard to explain off the top of my head, ... > valid as the original filename. ... A soft link, on ...
    (comp.lang.java.programmer)