This commit is contained in:
Looly 2021-12-25 02:38:34 +08:00
parent 364bca150a
commit f62867026b

View File

@ -7,6 +7,8 @@ import cn.hutool.extra.ssh.Sftp;
import org.junit.Ignore;
import org.junit.Test;
import java.util.List;
public class FtpTest {
@Test
@ -75,4 +77,17 @@ public class FtpTest {
IoUtil.close(ftp);
}
@Test
@Ignore
public void downloadTest() {
Ftp ftp = new Ftp("localhost");
List<String> fileNames = ftp.ls("temp/");
for(String name: fileNames) {
ftp.download("",
name,
FileUtil.file("d:/test/download/" + name));
}
}
}