(ctx context.Context, reqPath string, args model.ArchiveInnerArgs)
| 473 | } |
| 474 | |
| 475 | func (d *Alias) extract(ctx context.Context, reqPath string, args model.ArchiveInnerArgs) (*model.Link, error) { |
| 476 | storage, reqActualPath, err := op.GetStorageAndActualPath(reqPath) |
| 477 | if err != nil { |
| 478 | return nil, err |
| 479 | } |
| 480 | if _, ok := storage.(driver.ArchiveReader); !ok { |
| 481 | return nil, errs.NotImplement |
| 482 | } |
| 483 | if args.Redirect && common.ShouldProxy(storage, stdpath.Base(reqPath)) { |
| 484 | _, err := fs.Get(ctx, reqPath, &fs.GetArgs{NoLog: true}) |
| 485 | if err == nil { |
| 486 | return nil, err |
| 487 | } |
| 488 | return nil, nil |
| 489 | } |
| 490 | link, _, err := op.DriverExtract(ctx, storage, reqActualPath, args) |
| 491 | return link, err |
| 492 | } |
| 493 | |
| 494 | func getAllSort(dirs []model.Obj) model.Sort { |
| 495 | ret := model.Sort{} |
no test coverage detected