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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: 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



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

              Created:
              Updated: