Commit 472da026dee653b5770990b8e3daaca557d3af78
1 parent
735228fc
调整注释
Showing
1 changed file
with
2 additions
and
2 deletions
yudao-framework/yudao-spring-boot-starter-file/src/main/java/cn/iocoder/yudao/framework/file/core/client/ftp/FtpFileClient.java
| ... | ... | @@ -27,9 +27,9 @@ public class FtpFileClient extends AbstractFileClient<FtpFileClientConfig> { |
| 27 | 27 | |
| 28 | 28 | @Override |
| 29 | 29 | protected void doInit() { |
| 30 | - //如果路径配置\a\test,替换成/a/test,替换方法已经处理为null情况 | |
| 30 | + // 把配置的 \ 替换成 /,如果路径配置 \a\test,替换成 /a/test,替换方法已经处理 null 情况 | |
| 31 | 31 | config.setBasePath(StrUtil.replace(config.getBasePath(),StrUtil.BACKSLASH,StrUtil.SLASH)); |
| 32 | - // ftp是的路径是"/" 结尾 | |
| 32 | + // ftp的路径是 / 结尾 | |
| 33 | 33 | if (!config.getBasePath().endsWith(StrUtil.SLASH)) { |
| 34 | 34 | config.setBasePath(config.getBasePath() + StrUtil.SLASH); |
| 35 | 35 | } | ... | ... |