Re: how to detect a hard link in Java?
- From: "Hemal Pandya" <hemalpandya@xxxxxxxxx>
- Date: 31 Aug 2005 04:56:25 -0700
> Now there is a file that is known by the names "foo" and "bar", and
> neither of them is its original name. Which should be the canonical
> name? Maybe "bar" because it is alphabetically earlier. The aliases
> might be in different directories, and then a shorter path might be
> more canonical.
Unix does not have a concept of a canonical filename. As a matter of
fact the file and its name are two separate things.
Java does. The javadoc for getCanonicalPath says its definition is
system dependent. But my experience on Linux and the hints is javadoc
suggest it does not have anything to do with the links to the file.
.
- References:
- how to detect a hard link in Java?
- From: jojo
- Re: how to detect a hard link in Java?
- From: Andrew Thompson
- Re: how to detect a hard link in Java?
- From: Monique Y. Mudama
- Re: how to detect a hard link in Java?
- From: Andrew Thompson
- Re: how to detect a hard link in Java?
- From: Roedy Green
- Re: how to detect a hard link in Java?
- From: Jussi Piitulainen
- how to detect a hard link in Java?
- Prev by Date: Re: Commenting in Java
- Next by Date: Re: Software Engineers required for USA
- 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
|