15 lines
198 B
Go
15 lines
198 B
Go
package dav
|
|
|
|
import (
|
|
"path/filepath"
|
|
"strings"
|
|
)
|
|
|
|
func addSlash(input string) string {
|
|
p := filepath.Join("/", input)
|
|
if p == "/" || strings.HasSuffix(p, "/") {
|
|
return p
|
|
}
|
|
return p + "/"
|
|
}
|