A DESCRIPTION OF THE REQUEST :
There should be possible to create links like by Linux/Unix/Windows ln command. It should also be possible to detect is some file link and where does it link or does it link nowhere.
JUSTIFICATION :
Handling links is common property, when working with files.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Following kind of methods could be used:
File f = ...; // Actual file or directory
File linkName = ...; // Link
f.link(linkName);
if (linkName.isLink()) {
// is a link
if (linkName.isEmptyLink()) {
// does not link anywhere
}
}
There should be possible to create links like by Linux/Unix/Windows ln command. It should also be possible to detect is some file link and where does it link or does it link nowhere.
JUSTIFICATION :
Handling links is common property, when working with files.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Following kind of methods could be used:
File f = ...; // Actual file or directory
File linkName = ...; // Link
f.link(linkName);
if (linkName.isLink()) {
// is a link
if (linkName.isEmptyLink()) {
// does not link anywhere
}
}
- duplicates
-
JDK-4313887 New I/O: Improved filesystem interface
- Resolved
- relates to
-
JDK-4042001 java.io.File: Add support for symbolic links
- Closed