mirror of
https://github.com/vbatts/srvdav.git
synced 2025-07-23 18:50:27 +00:00
vendoring and caldav
This commit is contained in:
parent
a06aa900b7
commit
fd9092e5ab
96 changed files with 14832 additions and 5 deletions
30
vendor/github.com/samedi/caldav-go/files/paths.go
generated
vendored
Normal file
30
vendor/github.com/samedi/caldav-go/files/paths.go
generated
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
package files
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"path/filepath"
|
||||
"github.com/samedi/caldav-go/lib"
|
||||
)
|
||||
|
||||
const (
|
||||
Separator = string(filepath.Separator)
|
||||
)
|
||||
|
||||
func AbsPath(path string) string {
|
||||
path = strings.Trim(path, "/")
|
||||
absPath, _ := filepath.Abs(path)
|
||||
|
||||
return absPath
|
||||
}
|
||||
|
||||
func DirPath(path string) string {
|
||||
return filepath.Dir(path)
|
||||
}
|
||||
|
||||
func JoinPaths(paths ...string) string {
|
||||
return filepath.Join(paths...)
|
||||
}
|
||||
|
||||
func ToSlashPath(path string) string {
|
||||
return lib.ToSlashPath(path)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue