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