alist/drivers/uss/util.go

14 lines
206 B
Go

package uss
import "strings"
// do others that not defined in Driver interface
func getKey(path string, dir bool) string {
path = strings.TrimPrefix(path, "/")
if dir {
path += "/"
}
return path
}