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

(fs) Files.copy include symbolic link detailed message for NoSuchFileException

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • None

      Simulation case:
      ```
      touch testfile
      ln -s testfile testlink
      mv testfile testfile1
      ```

      code:
      ```
          public static void main(String[] args) throws IOException {
              Files.copy(Paths.get("/data/testfiles/testlink"), Paths.get("/data/testfiles/xx"));
          }
      ```

      Program current information:
      Exception in thread "main" java.nio.file.NoSuchFileException: /data/testfiles/testlink


      Devops check file exists with ll



            pxie Peng Xie
            pxie Peng Xie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: