mirror of https://github.com/Xhofe/alist
fix: extract_folder causes sorting confusion (close #929)
parent
58568d4ef6
commit
395de069c2
|
@ -56,7 +56,7 @@ func ExtractFolder(files []File, account *Account) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
front := account.ExtractFolder == "front"
|
front := account.ExtractFolder == "front"
|
||||||
sort.Slice(files, func(i, j int) bool {
|
sort.SliceStable(files, func(i, j int) bool {
|
||||||
if files[i].IsDir() || files[j].IsDir() {
|
if files[i].IsDir() || files[j].IsDir() {
|
||||||
if !files[i].IsDir() {
|
if !files[i].IsDir() {
|
||||||
return !front
|
return !front
|
||||||
|
|
Loading…
Reference in New Issue