mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Updated Filer (markdown)
parent
c43e67bea8
commit
5fc68ffb7d
6
Filer.md
6
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
|
# POST a file with a new name and read it back
|
||||||
curl -F "filename=@Makefile" "http://localhost:8888/path/to/sources/new_name"
|
curl -F "filename=@Makefile" "http://localhost:8888/path/to/sources/new_name"
|
||||||
curl "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
|
# list sub folders and files
|
||||||
curl "http://localhost:8888/path/to/sources/?pretty=y"
|
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
|
# 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"
|
curl "http://localhost:8888/path/to/sources/?lastFileName=abc.txt&limit=50&pretty=y"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
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.
|
Loading…
Reference in a new issue