server(filesystem): fix sort position of directories (#188)

This commit is contained in:
Daniel Barton 2024-05-14 05:52:10 +08:00 committed by GitHub
parent 71c5338549
commit 9b341db2db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -480,9 +480,9 @@ func (fs *Filesystem) ListDirectory(p string) ([]Stat, error) {
case a.IsDir() && b.IsDir():
return 0
case a.IsDir():
return 1
default:
return -1
default:
return 1
}
})