Skip to content

Commit

Permalink
fix(native): download while root_folder is not root (fix: #1340)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Jul 21, 2022
1 parent a3ef3d1 commit f6527f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/alist/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (driver Alist) Link(args base.Args, account *model.Account) (*base.Link, er
flag = "p"
}
link := base.Link{}
link.Url = fmt.Sprintf("%s/%s%s?sign=%s", account.SiteUrl, flag, path, utils.SignWithToken(name, conf.Token))
link.Url = fmt.Sprintf("%s/%s%s?sign=%s", account.SiteUrl, flag, utils.Join(utils.ParsePath(account.RootFolder), path), utils.SignWithToken(name, conf.Token))
return &link, nil
}

Expand Down

0 comments on commit f6527f1

Please # to comment.