From 5fc68ffb7d3fc08847f81c4257c38353e931c156 Mon Sep 17 00:00:00 2001 From: "Stuart P. Bentley" Date: Thu, 16 Apr 2015 13:16:59 -0700 Subject: [PATCH] Updated Filer (markdown) --- Filer.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Filer.md b/Filer.md index 5f6fc08..db00fb0 100644 --- a/Filer.md +++ b/Filer.md @@ -76,10 +76,16 @@ curl "http://localhost:8888/path/to/sources/README.md" # POST a file with a new name and read it back curl -F "filename=@Makefile" "http://localhost:8888/path/to/sources/new_name" curl "http://localhost:8888/path/to/sources/new_name" +``` +You may also request a "listing" for a directory: + +``` # list sub folders and files curl "http://localhost:8888/path/to/sources/?pretty=y" # if lots of files under this folder, here is a way to efficiently paginate through all of them curl "http://localhost:8888/path/to/sources/?lastFileName=abc.txt&limit=50&pretty=y" -``` \ No newline at end of file +``` + +The Redis or Cassandra backends are currently implemented as ["flat namespace" stores](https://github.com/chrislusf/weed-fs/blob/master/go/filer/flat_namespace/flat_namespace_filer.go), so filers using them they may not perform directory listings at this time. \ No newline at end of file