@@ -22,8 +22,8 @@ Directory sort:
2222
2323Example:
2424``` sh
25- curl http://localhost/ghfs/
26- curl http://localhost/ghfs/? sort=/T
25+ curl ' http://localhost/ghfs/'
26+ curl ' http://localhost/ghfs/?sort=/T'
2727```
2828
2929# Get JSON data of specified path
@@ -33,7 +33,7 @@ GET <path>?json[&sort=key]
3333
3434Example:
3535``` sh
36- curl http://localhost/ghfs/? json
36+ curl ' http://localhost/ghfs/?json'
3737```
3838
3939# Render page for downloading
@@ -47,7 +47,7 @@ It's convenient for tools like "wget" to download files recursively.
4747
4848Example:
4949``` shell
50- wget --recursive -nc -nH -np http://localhost/dir/? download
50+ wget --recursive -nc -nH -np ' http://localhost/dir/?download'
5151```
5252
5353# Download a file
@@ -58,7 +58,7 @@ GET <path/to/file>?download
5858
5959Example:
6060``` sh
61- curl http://localhost/ghfs/file? download
61+ curl ' http://localhost/ghfs/file?download'
6262```
6363
6464# Get contents of specified path as archive file
@@ -74,7 +74,7 @@ POST <path>?zip
7474
7575Example:
7676``` sh
77- curl http://localhost/tmp/? zip > tmp.zip
77+ curl ' http://localhost/tmp/?zip' > tmp.zip
7878```
7979
8080To archive specific sub items under current directory, pass ` name ` params:
@@ -92,7 +92,7 @@ name=<path1>&name=<path2>&...name=<pathN>
9292
9393Example:
9494``` sh
95- curl -X POST -d ' name=subdir1&name=subdir2/subdir21&name=file1&name=subdir3/file31' http://localhost/tmp/? zip > tmp.zip
95+ curl -X POST -d ' name=subdir1&name=subdir2/subdir21&name=file1&name=subdir3/file31' ' http://localhost/tmp/?zip' > tmp.zip
9696```
9797
9898# Create directories in specific path
@@ -108,7 +108,7 @@ name=<dir1path>&name=<dir2path>&...name=<dirNpath>
108108
109109Example:
110110``` sh
111- curl -X POST -d ' name=dir1&name=dir2&name=foo/bar/baz' http://localhost/tmp/? mkdir
111+ curl -X POST -d ' name=dir1&name=dir2&name=foo/bar/baz' ' http://localhost/tmp/?mkdir'
112112```
113113
114114# Upload files to specific path
@@ -122,20 +122,20 @@ POST <path>?upload[&json]
122122
123123Example:
124124``` sh
125- curl -F ' file=@file1.txt' -F ' file=@file2.txt;filename=renamed.txt' http://localhost/tmp/? upload
125+ curl -F ' file=@file1.txt' -F ' file=@file2.txt;filename=renamed.txt' ' http://localhost/tmp/?upload'
126126```
127127
128128If "mkdir" is also enabled, it is possible to upload file to a specific path relative to current URL path,
129129using form name ` dirfile ` instead of ` file ` :
130130``` sh
131- curl -F ' dirfile=@file1.txt;filename=subdir/childdir/filename.txt' http://localhost/tmp/? upload
131+ curl -F ' dirfile=@file1.txt;filename=subdir/childdir/filename.txt' ' http://localhost/tmp/?upload'
132132# file is now available at http://localhost/tmp/subdir/childdir/filename.txt
133133```
134134
135135Another form name ` innerdirfile ` is similar to ` dirfile ` , but strip first level of upload directory.
136136It is convenient to upload contents of a directory:
137137``` sh
138- curl -F ' innerdirfile=@file1.txt;filename=subdir/childdir/filename.txt' http://localhost/tmp/? upload
138+ curl -F ' innerdirfile=@file1.txt;filename=subdir/childdir/filename.txt' ' http://localhost/tmp/?upload'
139139# file is now available at http://localhost/tmp/childdir/filename.txt
140140```
141141
@@ -153,5 +153,5 @@ name=<dir1>&name=<dir2>&...name=<dirN>
153153
154154Example:
155155``` sh
156- curl -X POST -d ' name=dir1&name=dir2&name=dir3' http://localhost/tmp/? delete
156+ curl -X POST -d ' name=dir1&name=dir2&name=dir3' ' http://localhost/tmp/?delete'
157157```
0 commit comments