Skip to content

Commit

Permalink
chore: hash 路径使用小写字母
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed May 18, 2023
1 parent a2c847f commit 075902e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/kernel-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class KernelApi extends BaseApi {
* @param to - 转换后的文件名,不包括路径,路径相对于 /temp/convert/pandoc
*/
public async convertPandoc(type: string, from: string, to: string): Promise<SiyuanData> {
const toMediaDir = [mediaDir, shortHash(to)].join("/")
const toMediaDir = [mediaDir, shortHash(to).toLowerCase()].join("/")
const args = {
args: ["--to", type, from, "-o", to, "--extract-media", toMediaDir],
}
Expand Down

0 comments on commit 075902e

Please sign in to comment.