(self, cloud)
| 206 | match_files(fs, result, [{"path": fs.join(fs_path, fname), "isdir": False}]) |
| 207 | |
| 208 | def test_dir(self, cloud): |
| 209 | cloud.gen({"dir/foo": "foo contents", "dir/subdir/bar": "bar contents"}) |
| 210 | if not (cloud / "dir").is_dir(): |
| 211 | pytest.skip("Cannot create directories on this cloud") |
| 212 | fs, _ = parse_external_url(cloud.url, cloud.config) |
| 213 | result = ls_url(str(cloud / "dir"), fs_config=cloud.config) |
| 214 | match_files( |
| 215 | fs, |
| 216 | result, |
| 217 | [ |
| 218 | {"path": "foo", "isdir": False}, |
| 219 | {"path": "subdir", "isdir": True}, |
| 220 | ], |
| 221 | ) |
| 222 | |
| 223 | def test_recursive(self, cloud): |
| 224 | cloud.gen({"dir/foo": "foo contents", "dir/subdir/bar": "bar contents"}) |
nothing calls this directly
no test coverage detected