mirror of
https://github.com/AlistGo/alist.git
synced 2025-12-19 11:00:06 +08:00
Can enable sign for every driver now. Bug: When sign enabled, in download page, Copy link doesn't contain a sign. (Not done yet)
14 lines
237 B
Go
14 lines
237 B
Go
package sign
|
|
|
|
import (
|
|
"github.com/alist-org/alist/v3/internal/op"
|
|
)
|
|
|
|
func IsStorageSigned(rawPath string) bool {
|
|
storage := op.GetBalancedStorage(rawPath).GetStorage()
|
|
if storage.EnableSign == true {
|
|
return true
|
|
}
|
|
return false
|
|
}
|