mirror of
https://github.com/AlistGo/alist.git
synced 2025-06-24 14:51:39 +08:00
fix: resolve concurrent read/write issues in WrapObjName (#7865)
This commit is contained in:
@ -115,12 +115,12 @@ func ExtractFolder(objs []Obj, extractFolder string) {
|
||||
}
|
||||
|
||||
func WrapObjName(objs Obj) Obj {
|
||||
return &ObjWrapName{Obj: objs}
|
||||
return &ObjWrapName{Name: utils.MappingName(objs.GetName()), Obj: objs}
|
||||
}
|
||||
|
||||
func WrapObjsName(objs []Obj) {
|
||||
for i := 0; i < len(objs); i++ {
|
||||
objs[i] = &ObjWrapName{Obj: objs[i]}
|
||||
objs[i] = &ObjWrapName{Name: utils.MappingName(objs[i].GetName()), Obj: objs[i]}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user