From 4fa11879f2bc1461182a052b09c9b1cd10a2d2f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=AE=E5=87=89?= <36558727+Xhofe@users.noreply.github.com> Date: Fri, 12 Mar 2021 22:03:50 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E7=9B=AE=E5=BD=95=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/models/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/models/create.go b/server/models/create.go index b148b2f0..920ea211 100644 --- a/server/models/create.go +++ b/server/models/create.go @@ -71,7 +71,7 @@ func BuildOne(parent string, path string, tx *gorm.DB, parentPassword string) er return err } if file.Type == "folder" { - if err := BuildOne(file.FileId, fmt.Sprintf("%s%s/", path, file.Name), tx, password); err != nil { + if err := BuildOne(file.FileId, fmt.Sprintf("%s%s/", path, name), tx, password); err != nil { return err } }