【发布时间】:2018-07-08 14:20:55
【问题描述】:
我想将文件从一台 FTP 服务器复制到另一台 FTP 服务器(两台不同的主机)。
Files.copy(
new File(channelSftp.realpath(fileName)).toPath(),
new File(channelSftp2.realpath(fileName)).toPath());
它正在给java.nio.file.NoSuchFileException
谁能帮帮我。
【问题讨论】:
-
查看你的问题历史:你真的应该在提问之前做一些研究!
-
我不想从一个文件夹复制到另一个文件夹,我想将文件从一个 FTP 地址复制到另一个 FTP 地址(我的意思是 2 个不同的主机)