You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cn.hutool.core.io.IORuntimeException: NoSuchFileException: C:\test\Snipaste-2.8.8-Beta-x64.zip
at cn.hutool.core.io.file.PathUtil.copyFile(PathUtil.java:223)
at cn.hutool.core.io.FileUtil.copyFile(FileUtil.java:1072)
at com.zzsn.download.FileDownloader.downloadFile(FileDownloader.java:26)
at com.zzsn.download.FileDownloader.main(FileDownloader.java:41)
Caused by: java.nio.file.NoSuchFileException: C:\test\Snipaste-2.8.8-Beta-x64.zip
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:79)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:230)
at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434)
at java.nio.file.Files.newOutputStream(Files.java:216)
at java.nio.file.Files.copy(Files.java:3016)
at cn.hutool.core.io.file.PathUtil.copyFile(PathUtil.java:221)
... 3 common frames omitted
cn.hutool.core.io.IORuntimeException: NoSuchFileException: C:\test\Snipaste-2.8.8-Beta-x64.zip
at cn.hutool.core.io.file.PathUtil.copyFile(PathUtil.java:223)
at cn.hutool.core.io.FileUtil.copyFile(FileUtil.java:1072)
at com.zzsn.download.FileDownloader.downloadFile(FileDownloader.java:26)
at com.zzsn.download.FileDownloader.main(FileDownloader.java:41)
Caused by: java.nio.file.NoSuchFileException: C:\test\Snipaste-2.8.8-Beta-x64.zip
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:79)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:230)
at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434)
at java.nio.file.Files.newOutputStream(Files.java:216)
at java.nio.file.Files.copy(Files.java:3016)
at cn.hutool.core.io.file.PathUtil.copyFile(PathUtil.java:221)
... 3 more
The text was updated successfully, but these errors were encountered:
版本情况
JDK版本: oraclejdk_8_202
hutool版本: 5.8.27(请确保最新尝试是否还有问题)
问题描述(包括截图)
方法注释说目的文件不存在会创建,但是实际运行的时候会报NoSuchFileException,显然是没有创建出目的文件
The text was updated successfully, but these errors were encountered: