mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add methods
This commit is contained in:
@@ -27,7 +27,7 @@ public class FtpTest {
|
||||
public void uploadTest() {
|
||||
final Ftp ftp = new Ftp("localhost");
|
||||
|
||||
final boolean upload = ftp.upload("/temp", FileUtil.file("d:/test/test.zip"));
|
||||
final boolean upload = ftp.uploadFile("/temp", FileUtil.file("d:/test/test.zip"));
|
||||
Console.log(upload);
|
||||
|
||||
IoUtil.close(ftp);
|
||||
|
@@ -42,7 +42,7 @@ public class SftpTest {
|
||||
@Test
|
||||
@Ignore
|
||||
public void uploadTest() {
|
||||
sshjSftp.upload("/home/test/temp/", new File("C:\\Users\\akwangl\\Downloads\\temp\\辽宁_20190718_104324.CIME"));
|
||||
sshjSftp.uploadFile("/home/test/temp/", new File("C:\\Users\\akwangl\\Downloads\\temp\\辽宁_20190718_104324.CIME"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user