mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
syn cd
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user