aboutsummaryrefslogtreecommitdiff
path: root/weed/filer2/filer.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-05-13 14:02:29 -0700
committerChris Lu <chris.lu@gmail.com>2018-05-13 14:02:29 -0700
commitf01d5616b3dba0779d2adbe361271a8f9626e8ee (patch)
treea8e7be90464df4ad8a829400238e2d813ec30fc6 /weed/filer2/filer.go
parenta4740ca8365462832738ef18ad3df5875ef91cf4 (diff)
downloadseaweedfs-f01d5616b3dba0779d2adbe361271a8f9626e8ee.tar.xz
seaweedfs-f01d5616b3dba0779d2adbe361271a8f9626e8ee.zip
add better listing directory entries
Diffstat (limited to 'weed/filer2/filer.go')
-rw-r--r--weed/filer2/filer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filer2/filer.go b/weed/filer2/filer.go
index 39be69d3a..ad7a3d906 100644
--- a/weed/filer2/filer.go
+++ b/weed/filer2/filer.go
@@ -117,11 +117,11 @@ func (f *Filer) DeleteEntry(p FullPath) (fileEntry *Entry, err error) {
return f.store.DeleteEntry(p)
}
-func (f *Filer) ListDirectoryEntries(p FullPath) ([]*Entry, error) {
+func (f *Filer) ListDirectoryEntries(p FullPath, startFileName string, inclusive bool, limit int) ([]*Entry, error) {
if strings.HasSuffix(string(p), "/") {
p = p[0:len(p)-1]
}
- return f.store.ListDirectoryEntries(p)
+ return f.store.ListDirectoryEntries(p, startFileName, inclusive, limit)
}
func (f *Filer) cacheGetDirectory(dirpath string) (*Entry) {