mirror of
https://github.com/pgsty/minio.git
synced 2026-08-10 16:23:28 +03:00
listObjects: Cleanup and naming conventions.
- Marker should be escaped outside in handlers. - Delimiter should be handled outside in handlers. - Add missing comments and change the function names. - Handle case of 'maxKeys' when its set to '0', its a valid case and should be treated as such.
This commit is contained in:
committed by
Anand Babu (AB) Periasamy
parent
85ab1df5a8
commit
c69fdf0cf2
+2
-1
@@ -25,6 +25,7 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Read all directory entries, returns a list of lexically sorted entries.
|
||||
func readDirAll(readDirPath, entryPrefixMatch string) ([]fsDirent, error) {
|
||||
f, err := os.Open(readDirPath)
|
||||
if err != nil {
|
||||
@@ -57,6 +58,6 @@ func readDirAll(readDirPath, entryPrefixMatch string) ([]fsDirent, error) {
|
||||
}
|
||||
}
|
||||
// Sort dirents.
|
||||
sort.Sort(fsDirents(dirents))
|
||||
sort.Sort(byDirentNames(dirents))
|
||||
return dirents, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user