vikunja-api/vendor/github.com/samedi/caldav-go/lib/paths.go

11 lines
154 B
Go
Raw Normal View History

2019-05-22 19:48:48 +02:00
package lib
import (
"path/filepath"
)
func ToSlashPath(path string) string {
cleanPath := filepath.Clean(path)
return filepath.ToSlash(cleanPath)
}