fix: create image permission denied in linux (change mkdir permission bits to 0755)

This commit is contained in:
fengxxc
2024-02-26 13:01:16 +08:00
parent cafe91bbc1
commit c1e117b3eb
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
BUILD_ENV := CGO_ENABLED=0
APP=wechatmp2markdown
VERSION=v1.1.5
VERSION=v1.1.6
# linux or mac 环境编译
# make [cmd]

View File

@@ -92,7 +92,7 @@ func FormatAndSave(article parse.Article, filePath string) error {
// make basePath dir if not exists
if _, err := os.Stat(basePath); err != nil {
if err := os.MkdirAll(basePath, 0644); err != nil {
if err := os.MkdirAll(basePath, 0755); err != nil {
panic(err)
}
}