mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -19,7 +19,7 @@ public class FtpTest {
|
||||
ftp.cd("/file/aaa");
|
||||
Console.log(ftp.pwd());
|
||||
|
||||
IoUtil.close(ftp);
|
||||
IoUtil.closeQuietly(ftp);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -30,7 +30,7 @@ public class FtpTest {
|
||||
final boolean upload = ftp.uploadFile("/temp", FileUtil.file("d:/test/test.zip"));
|
||||
Console.log(upload);
|
||||
|
||||
IoUtil.close(ftp);
|
||||
IoUtil.closeQuietly(ftp);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -54,7 +54,7 @@ public class FtpTest {
|
||||
|
||||
Console.log("打印pwd: " + ftp.pwd());
|
||||
|
||||
IoUtil.close(ftp);
|
||||
IoUtil.closeQuietly(ftp);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -63,7 +63,7 @@ public class FtpTest {
|
||||
final Ftp ftp = new Ftp("looly.centos");
|
||||
ftp.recursiveDownloadFolder("/",FileUtil.file("d:/test/download"));
|
||||
|
||||
IoUtil.close(ftp);
|
||||
IoUtil.closeQuietly(ftp);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -75,7 +75,7 @@ public class FtpTest {
|
||||
Console.log(ftp.pwd());
|
||||
ftp.recursiveDownloadFolder("/",FileUtil.file("d:/test/download"));
|
||||
|
||||
IoUtil.close(ftp);
|
||||
IoUtil.closeQuietly(ftp);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -90,7 +90,7 @@ public class FtpTest {
|
||||
FileUtil.file("d:/test/download/" + name));
|
||||
}
|
||||
|
||||
IoUtil.close(ftp);
|
||||
IoUtil.closeQuietly(ftp);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@@ -71,7 +71,7 @@ public class JschUtilTest {
|
||||
|
||||
Console.log("打印pwd: " + sftp.pwd());
|
||||
|
||||
IoUtil.close(sftp);
|
||||
IoUtil.closeQuietly(sftp);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user