mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
syn cd
This commit is contained in:
parent
fe71315f24
commit
4405d7b8f9
@ -7,6 +7,7 @@
|
||||
|
||||
### 新特性
|
||||
* 【crypto 】 PemUtil.readPemKey支持EC(pr#1366@Github)
|
||||
* 【extra 】 Ftp等cd方法增加同步(issue#1397@Github)
|
||||
|
||||
### Bug修复
|
||||
* 【json 】 JSONUtil.isJson方法改变trim策略,解决特殊空白符导致判断失败问题
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user