style: shorten name operations
to op
This commit is contained in:
@ -4,14 +4,14 @@ import (
|
||||
"context"
|
||||
|
||||
"github.com/alist-org/alist/v3/internal/model"
|
||||
"github.com/alist-org/alist/v3/internal/operations"
|
||||
"github.com/alist-org/alist/v3/internal/op"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
func link(ctx context.Context, path string, args model.LinkArgs) (*model.Link, model.Obj, error) {
|
||||
storage, actualPath, err := operations.GetStorageAndActualPath(path)
|
||||
storage, actualPath, err := op.GetStorageAndActualPath(path)
|
||||
if err != nil {
|
||||
return nil, nil, errors.WithMessage(err, "failed get storage")
|
||||
}
|
||||
return operations.Link(ctx, storage, actualPath, args)
|
||||
return op.Link(ctx, storage, actualPath, args)
|
||||
}
|
||||
|
Reference in New Issue
Block a user