mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix code
This commit is contained in:
parent
18b6ed1ed1
commit
87ce68ec0b
@ -1,5 +1,6 @@
|
|||||||
package org.dromara.hutool.extra.ftp;
|
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.IoUtil;
|
||||||
import org.dromara.hutool.core.io.file.FileUtil;
|
import org.dromara.hutool.core.io.file.FileUtil;
|
||||||
import org.dromara.hutool.core.lang.Console;
|
import org.dromara.hutool.core.lang.Console;
|
||||||
@ -11,6 +12,18 @@ import java.util.List;
|
|||||||
|
|
||||||
public class FtpTest {
|
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
|
@Test
|
||||||
@Disabled
|
@Disabled
|
||||||
public void cdTest() {
|
public void cdTest() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user