mirror of
https://github.com/AlistGo/alist.git
synced 2025-06-01 22:39:26 +08:00
14 lines
225 B
Go
14 lines
225 B
Go
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())
|
|
}
|