mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-20 11:18:46 +08:00
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
|
|
}
|