This commit is contained in:
Daniel 2024-02-08 17:14:51 +08:00
parent 4b19979c60
commit 9d2a9c0da2
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -165,8 +165,10 @@ func Mount(boxID string) (alreadyMount bool, err error) {
}
avDirPath := filepath.Join(util.WorkingDir, "guide", boxID, "storage", "av")
if err = filelock.Copy(avDirPath, filepath.Join(util.DataDir, "storage", "av")); nil != err {
return
if filelock.IsExist(avDirPath) {
if err = filelock.Copy(avDirPath, filepath.Join(util.DataDir, "storage", "av")); nil != err {
return
}
}
if box := Conf.Box(boxID); nil != box {