mirror of https://github.com/Xhofe/alist
14 lines
206 B
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
|
||
|
}
|