remove sort

This commit is contained in:
henry 2021-01-05 12:24:32 +08:00
parent a3c432dadc
commit 942a30f04c

View file

@ -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) {