1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-06 12:03:50 +08:00

fix: data文件夹权限问题 (#1529)

* fix: data文件夹权限问题

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

* 0o744->0o755
This commit is contained in:
Cinte 2022-06-06 12:38:50 +08:00 committed by GitHub
parent 23eea9188f
commit 7d97216612
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,7 @@ func Main() {
mkCacheDir := func(path string, _type string) { mkCacheDir := func(path string, _type string) {
if !global.PathExists(path) { 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) log.Fatalf("创建%s缓存文件夹失败: %v", _type, err)
} }
} }