mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package org.dromara.hutool.extra.ftp;
|
||||
|
||||
import org.apache.commons.net.ftp.FTPSClient;
|
||||
import org.dromara.hutool.core.io.IoUtil;
|
||||
import org.dromara.hutool.core.io.file.FileUtil;
|
||||
import org.dromara.hutool.core.lang.Console;
|
||||
@@ -11,6 +12,18 @@ import java.util.List;
|
||||
|
||||
public class FtpTest {
|
||||
|
||||
@Test
|
||||
@Disabled
|
||||
public void ftpsTest() {
|
||||
final FTPSClient ftpsClient = new FTPSClient();
|
||||
final Ftp ftp = new Ftp(ftpsClient);
|
||||
|
||||
ftp.cd("/file/aaa");
|
||||
Console.log(ftp.pwd());
|
||||
|
||||
IoUtil.closeQuietly(ftp);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Disabled
|
||||
public void cdTest() {
|
||||
|
Reference in New Issue
Block a user