chore: update readme

This commit is contained in:
sigoden 2022-08-02 07:07:53 +08:00
parent 30b8f75bba
commit 14efeb6360

View file

@ -160,9 +160,9 @@ curl -X DELETE http://127.0.0.1:5000/path-to-file-or-folder
``` ```
<details> <details>
<summary>Advance topics</summary> <summary><h2>Advance topics</h2></summary>
## Access Control ### Access Control
Dufs supports path level access control. You can control who can do what on which path with `--auth`/`-a`. Dufs supports path level access control. You can control who can do what on which path with `--auth`/`-a`.
@ -186,11 +186,9 @@ dufs -a /@admin:pass1@* -a /ui@designer:pass2 -A
- Account `designer:pass2` can upload/delete/view/download any files/folders in the `ui` folder. - Account `designer:pass2` can upload/delete/view/download any files/folders in the `ui` folder.
## Hidden ### Hide
Dufs supports hide directories/files via option `--hidden`. Dufs supports hiding directories/files via option `--hidden`.
List the directories to be hidden for directory listings
``` ```
dufs --hidden .git,.DS_Store dufs --hidden .git,.DS_Store
@ -208,7 +206,7 @@ Hide all hidden directories/files
dufs --hidden '.*' dufs --hidden '.*'
``` ```
## Log format ### Log Format
Dufs supports customize http log format via option `--log-format`. Dufs supports customize http log format via option `--log-format`.