mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Updated Directories and Files (markdown)
parent
d306e9de33
commit
42f753ae24
|
@ -36,11 +36,16 @@ curl "http://localhost:8888/path/to/sources/README.md"
|
|||
curl -F "filename=@Makefile" "http://localhost:8888/path/to/sources/new_name"
|
||||
curl "http://localhost:8888/path/to/sources/new_name"
|
||||
|
||||
# list sub folders and files
|
||||
visit "http://localhost:8888/path/to/sources/"
|
||||
# list sub folders and files, use browser to visit this url: "http://localhost:8888/path/to/sources/"
|
||||
# To list the results in JSON:
|
||||
curl -H "Accept: application/json" "http://localhost:8888/path/to/sources/new_name"
|
||||
# To list the results in pretty JSON
|
||||
curl -H "Accept: application/json" "http://localhost:8888/path/to/sources/new_name?pretty=y"
|
||||
|
||||
# The directory list limit is default to 100
|
||||
# if lots of files under this folder, here is a way to efficiently paginate through all of them
|
||||
visit "http://localhost:8888/path/to/sources/?lastFileName=abc.txt&limit=50"
|
||||
http://localhost:8888/path/to/sources/?lastFileName=abc.txt&limit=50
|
||||
|
||||
```
|
||||
|
||||
## Architecture
|
||||
|
|
Loading…
Reference in a new issue