Skip to content

Commit

Permalink
fix: 修复根目录发布文档可能呢个出现的路径错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Nov 5, 2023
1 parent 175809f commit bee47fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/adaptors/api/base/github/commonGithubApiAdaptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class CommonGithubApiAdaptor extends BaseBlogApi {
// 路径处理
const savePath = post.cate_slugs?.[0] ?? cfg.blogid
const filename = post.mdFilename ?? "auto-" + sypIdUtil.newID() + ".md"
const docPath = `${savePath}/${filename}`
const docPath = StrUtil.pathJoin(savePath, filename)
this.logger.info("将要最终发送到以下目录 =>", docPath)

// 开始发布
Expand Down
2 changes: 1 addition & 1 deletion src/adaptors/api/base/gitlab/commonGitlabApiAdaptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class CommonGitlabApiAdaptor extends BaseBlogApi {
// 路径处理
const savePath = post.cate_slugs?.[0] ?? cfg.blogid
const filename = post.mdFilename ?? "auto-" + sypIdUtil.newID() + ".md"
const docPath = `${savePath}/${filename}`
const docPath = StrUtil.pathJoin(savePath, filename)
this.logger.info("将要最终发送到以下目录 =>", docPath)

// 开始发布
Expand Down

0 comments on commit bee47fa

Please sign in to comment.