This commit is contained in:
Daniel 2024-02-08 17:11:20 +08:00
parent b0556a2d41
commit 4b19979c60
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 6 additions and 0 deletions

View file

@ -164,6 +164,11 @@ func Mount(boxID string) (alreadyMount bool, err error) {
return
}
avDirPath := filepath.Join(util.WorkingDir, "guide", boxID, "storage", "av")
if err = filelock.Copy(avDirPath, filepath.Join(util.DataDir, "storage", "av")); nil != err {
return
}
if box := Conf.Box(boxID); nil != box {
boxConf := box.GetConf()
boxConf.Closed = true