Browse Source

remove sort

pull/1728/head
henry 4 years ago
parent
commit
942a30f04c
  1. 12
      weed/filer/filer_search.go

12
weed/filer/filer_search.go

@ -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…
Cancel
Save