mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-09 00:59:02 +03:00
feat: API to search and list directories (#177)
use `?simple` to output path name only. use `?json` to output paths in json format. By default, output html page. close #166
This commit is contained in:
@@ -22,7 +22,7 @@ fn default_not_allow_symlink(server: TestServer, tmpdir: TempDir) -> Result<(),
|
||||
let resp = reqwest::blocking::get(server.url())?;
|
||||
let paths = utils::retrieve_index_paths(&resp.text()?);
|
||||
assert!(!paths.is_empty());
|
||||
assert!(!paths.contains(&format!("{}/", dir)));
|
||||
assert!(!paths.contains(&format!("{dir}/")));
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@@ -41,6 +41,6 @@ fn allow_symlink(
|
||||
let resp = reqwest::blocking::get(server.url())?;
|
||||
let paths = utils::retrieve_index_paths(&resp.text()?);
|
||||
assert!(!paths.is_empty());
|
||||
assert!(paths.contains(&format!("{}/", dir)));
|
||||
assert!(paths.contains(&format!("{dir}/")));
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user