mirror of
https://github.com/fengxxc/wechatmp2markdown.git
synced 2026-03-04 03:30:48 +08:00
fix: create image permission denied in linux (change mkdir permission bits to 0755)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user