diff --git a/README.md b/README.md index 1006499..2db8c62 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Dufs is a distinctive utility file server that supports static serving, uploadin - Serve static files - Download folder as zip file - Upload files and folders (Drag & Drop) -- Search files +- Create/Edit/Search files - Partial responses (Parallel/Resume download) - Path level access control - Support https @@ -171,16 +171,33 @@ Delete a file/folder curl -X DELETE http://127.0.0.1:5000/path-to-file-or-folder ``` +Create a directory + +``` +curl -X MKCOL https://127.0.0.1:5000/path-to-folder +``` + +Move the file/folder to the new path + +``` +curl -X MOVE https://127.0.0.1:5000/path -H "Destination: https://127.0.0.1:5000/new-path" +``` + List/search directory contents ``` -curl http://127.0.0.1:5000?simple # output pathname only, just like `ls -1` - +curl http://127.0.0.1:5000?simple # output name only, just like `ls -1` curl http://127.0.0.1:5000?json # output name/mtime/type/size and other information in json format - curl http://127.0.0.1:5000?q=Dockerfile&simple # search for files, just like `find -name Dockerfile` ``` +With authorization + +``` +curl --user user:pass --digest http://192.168.8.10:5000/file # digest auth +curl --user user:pass http://192.168.8.10:5000/file # basic auth +``` +

Advanced topics

diff --git a/assets/index.html b/assets/index.html index fee290c..193c3ff 100644 --- a/assets/index.html +++ b/assets/index.html @@ -73,7 +73,7 @@
-