feat: file proxy handle
This commit is contained in:
13
server/common/sign.go
Normal file
13
server/common/sign.go
Normal file
@ -0,0 +1,13 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"github.com/alist-org/alist/v3/internal/model"
|
||||
"github.com/alist-org/alist/v3/internal/sign"
|
||||
)
|
||||
|
||||
func Sign(obj model.Obj) string {
|
||||
if obj.IsDir() {
|
||||
return ""
|
||||
}
|
||||
return sign.Sign(obj.GetName())
|
||||
}
|
Reference in New Issue
Block a user