mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-09 00:59:02 +03:00
chore: trivial updates
This commit is contained in:
@@ -186,9 +186,9 @@ curl -X MOVE https://127.0.0.1:5000/path -H "Destination: https://127.0.0.1:5000
|
|||||||
List/search directory contents
|
List/search directory contents
|
||||||
|
|
||||||
```
|
```
|
||||||
curl http://127.0.0.1:5000?simple # output names only, just like `ls -1`
|
curl http://127.0.0.1:5000?q=Dockerfile # search for files, similar to `find -name Dockerfile`
|
||||||
|
curl http://127.0.0.1:5000?simple # output names only, similar to `ls -1`
|
||||||
curl http://127.0.0.1:5000?json # output paths in json format
|
curl http://127.0.0.1:5000?json # output paths in json format
|
||||||
curl http://127.0.0.1:5000?q=Dockerfile&simple # search for files, just like `find -name Dockerfile`
|
|
||||||
```
|
```
|
||||||
|
|
||||||
With authorization
|
With authorization
|
||||||
|
|||||||
@@ -74,5 +74,7 @@ fn no_log(tmpdir: TempDir, port: u16, #[case] args: &[&str]) -> Result<(), Error
|
|||||||
let output = std::str::from_utf8(&buf[0..buf_len])?;
|
let output = std::str::from_utf8(&buf[0..buf_len])?;
|
||||||
|
|
||||||
assert_eq!(output.lines().last().unwrap(), "");
|
assert_eq!(output.lines().last().unwrap(), "");
|
||||||
|
|
||||||
|
child.kill()?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user