add methods

This commit is contained in:
Looly
2022-09-26 18:37:31 +08:00
parent 8b9b610ba3
commit 7db4d93268
6 changed files with 81 additions and 38 deletions

View File

@@ -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);

View File

@@ -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