Updated API (markdown)

chrislusf committed 2015-04-09 13:12:44 -07:00
1 parent 64d45a767d
commit 812f68900f
1 file changed
+7 -2
+7 -2
@@ -347,14 +347,19 @@ This is for embedded filer only.
Rename a folder is an O(1) operation, even for folders with lots of files.
```bash
# Change folder name from /javascript to /assets
> curl "http://localhost:8888/admin/mv?from=/javascript&to=/assets"
> curl "http://localhost:8888/javascript/?pretty=y" # no files under /javascript now
# no files under /javascript now
> curl "http://localhost:8888/javascript/?pretty=y"
{
"Directory": "/javascript/",
"Files": null,
"Subdirectories": null
}
> curl "http://localhost:8888/assets/?pretty=y" # files are moved to /assets folder
# files are moved to /assets folder
> curl "http://localhost:8888/assets/?pretty=y"
{
"Directory": "/assets/",
"Files": [