fix:修复Config.json可能被覆盖的致命bug
This commit is contained in:
@@ -12,8 +12,8 @@ type file struct{}
|
|||||||
|
|
||||||
var File file
|
var File file
|
||||||
|
|
||||||
func (*file) Exists(path string) bool {
|
func (a *file) Exists(path string) bool {
|
||||||
_, err := os.Stat(path)
|
_, err := os.Stat(a.GetRootPath() + path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if os.IsExist(err) {
|
if os.IsExist(err) {
|
||||||
return true
|
return true
|
||||||
|
|||||||
Reference in New Issue
Block a user