Skip to content

Commit

Permalink
fix: data文件夹权限问题 (#1529)
Browse files Browse the repository at this point in the history
* fix: data文件夹权限问题

当权限644时候,data文件夹会由于没有执行权限而无法创建后续的图片...等一系列文件夹。

* 0o744->0o755
  • Loading branch information
LambdaYH committed Jun 6, 2022
1 parent 23eea91 commit 7d97216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/gocq/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func Main() {

mkCacheDir := func(path string, _type string) {
if !global.PathExists(path) {
if err := os.MkdirAll(path, 0o644); err != nil {
if err := os.MkdirAll(path, 0o755); err != nil {
log.Fatalf("创建%s缓存文件夹失败: %v", _type, err)
}
}
Expand Down

0 comments on commit 7d97216

Please sign in to comment.