Commit b5f97f69d38049bdb1b800d758eb78513dcc4a2d
注释标点符号和汉字空格
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-framework/yudao-spring-boot-starter-file/src/main/java/cn/iocoder/yudao/framework/file/core/client/ftp/FtpFileClient.java
| @@ -28,7 +28,7 @@ public class FtpFileClient extends AbstractFileClient<FtpFileClientConfig> { | @@ -28,7 +28,7 @@ public class FtpFileClient extends AbstractFileClient<FtpFileClientConfig> { | ||
| 28 | @Override | 28 | @Override |
| 29 | protected void doInit() { | 29 | protected void doInit() { |
| 30 | // 把配置的 \ 替换成 /, 如果路径配置 \a\test, 替换成 /a/test, 替换方法已经处理 null 情况 | 30 | // 把配置的 \ 替换成 /, 如果路径配置 \a\test, 替换成 /a/test, 替换方法已经处理 null 情况 |
| 31 | - config.setBasePath(StrUtil.replace(config.getBasePath(),StrUtil.BACKSLASH,StrUtil.SLASH)); | 31 | + config.setBasePath(StrUtil.replace(config.getBasePath(), StrUtil.BACKSLASH, StrUtil.SLASH)); |
| 32 | // ftp的路径是 / 结尾 | 32 | // ftp的路径是 / 结尾 |
| 33 | if (!config.getBasePath().endsWith(StrUtil.SLASH)) { | 33 | if (!config.getBasePath().endsWith(StrUtil.SLASH)) { |
| 34 | config.setBasePath(config.getBasePath() + StrUtil.SLASH); | 34 | config.setBasePath(config.getBasePath() + StrUtil.SLASH); |