mirror of
https://github.com/AlistGo/alist.git
synced 2025-05-28 11:03:20 +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