mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix FileUtil.remove bug
This commit is contained in:
@@ -238,7 +238,10 @@ public class Sftp extends AbstractFtp {
|
||||
return LsEntrySelector.CONTINUE;
|
||||
});
|
||||
} catch (SftpException e) {
|
||||
throw new JschRuntimeException(e);
|
||||
if(false == StrUtil.startWithIgnoreCase(e.getMessage(), "No such file")){
|
||||
throw new JschRuntimeException(e);
|
||||
}
|
||||
// 文件不存在忽略
|
||||
}
|
||||
return fileNames;
|
||||
}
|
||||
|
Reference in New Issue
Block a user