Skip to content

Commit

Permalink
🐛 目录名
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Mar 12, 2021
1 parent abe9d92 commit 4fa1187
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/models/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 4fa1187

Please sign in to comment.