mirror of
https://github.com/HChaZZY/alist.git
synced 2025-12-06 11:03:49 +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