From 6afd16f18c2ede764bb78f159808f3dde03f8d6b Mon Sep 17 00:00:00 2001 From: harry huang Date: Mon, 21 Feb 2022 12:45:39 +0800 Subject: [PATCH] #2690 filer_web: support moving entry --- Filer-Server-API.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Filer-Server-API.md b/Filer-Server-API.md index b585f8f..6e58975 100644 --- a/Filer-Server-API.md +++ b/Filer-Server-API.md @@ -197,6 +197,12 @@ curl -X DELETE http://localhost:8888/path/to/a/file?tagging=Name1,Some Notice that the tag names follow http header key convention, with the first character capitalized. +### Move files and directories +```bash +# move(rename) "/path/2/src_file" to "/path/to/dst_file" +> curl -X POST 'http://localhost:8888/path/to/dst_file?from=/path/2/src_file&pretty=yes' +``` + ### Create an empty folder Folders usually are created automatically when uploading a file. To create an empty file, you can use this: ```