Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6350340

File should support creating and detecting links

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux

      Description

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alanb Alan Bateman
                Reporter:
                jssunw Jitender S (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: