Add VidHub endpoints
This commit is contained in:
14
internal/dav/util.go
Normal file
14
internal/dav/util.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package dav
|
||||
|
||||
import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func addSlash(input string) string {
|
||||
p := filepath.Join("/", input)
|
||||
if p == "/" || strings.HasSuffix(p, "/") {
|
||||
return p
|
||||
}
|
||||
return p + "/"
|
||||
}
|
||||
Reference in New Issue
Block a user