mirror of https://github.com/Xhofe/alist
fix(alias): check obj exist for every storage (fix d9795ff
)
parent
d9795ff22f
commit
b8bc94306d
|
@ -84,6 +84,10 @@ func (d *Alias) link(ctx context.Context, dst, sub string, args model.LinkArgs)
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
_, err = fs.Get(ctx, reqPath)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if common.ShouldProxy(storage, stdpath.Base(sub)) {
|
||||
return &model.Link{
|
||||
URL: fmt.Sprintf("/p%s?sign=%s",
|
||||
|
|
Loading…
Reference in New Issue