This commit is contained in:
Looly
2021-02-03 13:41:07 +08:00
parent fe71315f24
commit 4405d7b8f9
3 changed files with 3 additions and 2 deletions

View File

@@ -272,7 +272,7 @@ public class Ftp extends AbstractFtp {
* @return 是否成功
*/
@Override
public boolean cd(String directory) {
synchronized public boolean cd(String directory) {
if (StrUtil.isBlank(directory)) {
// 当前目录
return true;

View File

@@ -327,7 +327,7 @@ public class Sftp extends AbstractFtp {
* @throws FtpException 进入目录失败异常
*/
@Override
public boolean cd(String directory) throws FtpException{
synchronized public boolean cd(String directory) throws FtpException{
if (StrUtil.isBlank(directory)) {
// 当前目录
return true;