Re: how to detect a hard link in Java?



On 30 Aug 2005 18:39:47 -0700, jojo wrote:
> I have an application need to detect the hard links within the unix
> file systems. how to detect it and how to get the target path of this
> link points to in Java?

It isn't possible (java or not).

A "hard link" is simply a directory entry that refers to an inode, in
common terms a filename. Files in unix can have multiple names
(without using symbolic or soft links), and none of them has any
precedence over the others.

In java terms, this is equivalent to holding several references to a
given object. All of them are equivalent.

/gordon

--
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
.



Relevant Pages

  • Re: Simple HowTo
    ... Tomcat, Sun Java, and mod_jk. ... IDE constructs (up to 15 partitions) to a more SCSI construct (up to ... of the better installations defined specific file systems and mount ... none of this has any connection whatsoever to an 'M$ C: drive mentality'. ...
    (Fedora)
  • Re: Access to Wireless LAN ...
    ... >> Yes, because this is handled differently on each platform, it cannot be ... > You mean, like file systems and GUIs are different on each platform, ... > making it impossible to add file IO and GUIs to Java? ...
    (comp.lang.java.programmer)
  • Re: Access to Wireless LAN ...
    ... You mean, like file systems and GUIs are different on each platform, making it ... impossible to add file IO and GUIs to Java? ...
    (comp.lang.java.programmer)
  • Re: trinary statement
    ... It's just useful to use the common terms if you know them. ... Convert VB to C#, C++, or Java ... or proceeding by three; ... Is it really that bad for someone to simply use a synonym instead of the ...
    (microsoft.public.dotnet.languages.csharp)