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:
parent
23eea9188f
commit
7d97216612
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user