mirror of
https://github.com/AlistGo/alist.git
synced 2025-06-01 06:10:26 +08:00
🎇 webdav unfinished
This commit is contained in:
@ -89,3 +89,9 @@ func ParsePath(path string) string {
|
||||
return path
|
||||
}
|
||||
|
||||
func RemoveLastSlash(path string) string {
|
||||
if len(path) > 1 {
|
||||
return strings.TrimSuffix(path, "/")
|
||||
}
|
||||
return path
|
||||
}
|
Reference in New Issue
Block a user