Skip to content

Commit

Permalink
server(filesystem): Fix sort position of directories
Browse files Browse the repository at this point in the history
Correct the sorting order so that directories are at the beginning as intended.
  • Loading branch information
danny6167 committed May 9, 2024
1 parent 71c5338 commit 2f8a14e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/filesystem/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
})

Expand Down

0 comments on commit 2f8a14e

Please sign in to comment.