mirror of https://github.com/Xhofe/alist
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())
|
||
|
}
|