mirror of
https://github.com/HChaZZY/alist.git
synced 2025-12-06 11:03:49 +08:00
🐛 fix windows check parent password
This commit is contained in:
@@ -94,4 +94,10 @@ func RemoveLastSlash(path string) string {
|
||||
return strings.TrimSuffix(path, "/")
|
||||
}
|
||||
return path
|
||||
}
|
||||
|
||||
func Dir(path string) string {
|
||||
path = ParsePath(path)
|
||||
idx := strings.LastIndex(path, "/")
|
||||
return path[:idx]
|
||||
}
|
||||
Reference in New Issue
Block a user