feat: add upyun-uss driver

This commit is contained in:
Noah Hsu
2022-09-04 13:03:10 +08:00
parent ffba5e0aec
commit a4a8739748
8 changed files with 197 additions and 2 deletions

13
drivers/uss/util.go Normal file
View File

@ -0,0 +1,13 @@
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
}