mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-04 02:57:44 +01:00
Updated API (markdown)
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": [
|
||||
|
||||
Reference in new issue
Block a user