feat: hutool-extra ftp 支持上传文件或目录(包含当前及子孙目录的所有文件)

This commit is contained in:
xhzou
2022-09-26 15:25:13 +08:00
parent 8a30943d44
commit 6d83db671b
3 changed files with 70 additions and 12 deletions

View File

@@ -33,6 +33,15 @@ public class FtpTest {
IoUtil.close(ftp);
}
@Test
@Ignore
public void uploadDirectorTest() {
final Ftp ftp = new Ftp("localhost");
ftp.uploadFileOrDirectory("/temp", FileUtil.file("d:/test/"));
IoUtil.close(ftp);
}
@Test
@Ignore
public void reconnectIfTimeoutTest() throws InterruptedException {