Skip to content

Commit

Permalink
chore: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden committed Apr 19, 2024
1 parent 9353b2e commit 3d3bb82
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ curl -T path-to-file http://127.0.0.1:5000/new-path/path-to-file

Download a file
```sh
curl http://127.0.0.1:5000/path-to-file
curl http://127.0.0.1:5000/path-to-file # download the file
curl http://127.0.0.1:5000/path-to-file?hash # retrieve the sha256 hash of a file
```

Download a folder as zip file
Expand All @@ -176,13 +177,13 @@ curl -X DELETE http://127.0.0.1:5000/path-to-file-or-folder
Create a directory

```sh
curl -X MKCOL https://127.0.0.1:5000/path-to-folder
curl -X MKCOL http://127.0.0.1:5000/path-to-folder
```

Move the file/folder to the new path

```sh
curl -X MOVE https://127.0.0.1:5000/path -H "Destination: https://127.0.0.1:5000/new-path"
curl -X MOVE http://127.0.0.1:5000/path -H "Destination: http://127.0.0.1:5000/new-path"
```

List/search directory contents
Expand Down

0 comments on commit 3d3bb82

Please sign in to comment.