remove sort
This commit is contained in:
@@ -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
|
return entries, err
|
||||||
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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user