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
```
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
- links to
-
Review(master) openjdk/jdk/20984