mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-30 07:09:01 +08:00
remove sort
This commit is contained in:
parent
a3c432dadc
commit
942a30f04c
@ -42,17 +42,7 @@ func (f *Filer) ListDirectoryEntries(ctx context.Context, p util.FullPath, start
|
||||
}
|
||||
}
|
||||
|
||||
//Distinguish between folders and common files, folders are listed first
|
||||
var folderEntries, commonEntries []*Entry
|
||||
for i, _ := range entries {
|
||||
if entries[i].IsDirectory() {
|
||||
folderEntries = append(folderEntries, entries[i])
|
||||
} else {
|
||||
commonEntries = append(commonEntries, entries[i])
|
||||
}
|
||||
}
|
||||
folderEntries = append(folderEntries, commonEntries...)
|
||||
return folderEntries, err
|
||||
return entries, err
|
||||
}
|
||||
|
||||
func (f *Filer) doListPatternMatchedEntries(ctx context.Context, p util.FullPath, startFileName string, inclusive bool, limit int, prefix, restNamePattern string) (matchedEntries []*Entry, missedCount int, lastFileName string, err error) {
|
||||
|
Loading…
Reference in New Issue
Block a user