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

File should support creating and detecting links

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 5.0
    • core-libs
    • x86
    • linux

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: