docstore/pkg/fs/helper.go
2019-05-02 14:17:24 +02:00

9 lines
143 B
Go

package fs
import "path/filepath"
const sep = "/"
func Clean(path string) string {
return filepath.FromSlash(filepath.Clean(sep + path))
}