🐛 fix windows check parent

pull/548/head
微凉 2021-11-23 16:22:23 +08:00
parent 8cfabfd0f5
commit fe981f67ec
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ func CheckParent(path string, password string) bool {
}
return true
} else {
if path == "/" {
if path == "/" || path == "\\" {
return true
}
return CheckParent(filepath.Dir(path), password)
@ -72,7 +72,7 @@ func CheckDownLink(path string, passwordMd5 string) bool {
if !conf.CheckParent {
return true
}
if path == "/" {
if path == "/" || path == "\\" {
return true
}
return CheckDownLink(filepath.Dir(path), passwordMd5)