From 3f84506b23e7a94ad87dd77df4812554111360c5 Mon Sep 17 00:00:00 2001 From: bwcx_jzy Date: Mon, 19 Jul 2021 17:31:11 +0800 Subject: [PATCH] =?UTF-8?q?sftp=20=E6=96=B0=E5=A2=9E=E5=B0=86=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E6=96=87=E4=BB=B6=E6=88=96=E8=80=85=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=A4=B9=E5=90=8C=E6=AD=A5=E4=B8=8A=E4=BC=A0=E5=88=B0=E8=BF=9C?= =?UTF-8?q?=E7=A8=8B=E7=9B=AE=E5=BD=95=E7=9A=84=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hutool-extra/src/main/java/cn/hutool/extra/ssh/Sftp.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hutool-extra/src/main/java/cn/hutool/extra/ssh/Sftp.java b/hutool-extra/src/main/java/cn/hutool/extra/ssh/Sftp.java index a6812d8bf..9ac37de75 100644 --- a/hutool-extra/src/main/java/cn/hutool/extra/ssh/Sftp.java +++ b/hutool-extra/src/main/java/cn/hutool/extra/ssh/Sftp.java @@ -430,7 +430,7 @@ public class Sftp extends AbstractFtp { * @param file 文件或者文件夹 * @param remotePath 远程路径 */ - public void syncPath(File file, String remotePath) { + public void syncUpload(File file, String remotePath) { if (!FileUtil.exist(file)) { return; } @@ -442,9 +442,9 @@ public class Sftp extends AbstractFtp { for (File fileItem : files) { if (fileItem.isDirectory()) { String mkdir = FileUtil.normalize(remotePath + "/" + fileItem.getName()); - this.syncPath(fileItem, mkdir); + this.syncUpload(fileItem, mkdir); } else { - this.syncPath(fileItem, remotePath); + this.syncUpload(fileItem, remotePath); } } } else {