(fs, pathfn)
| 896 | |
| 897 | |
| 898 | def test_delete_dir_contents(fs, pathfn): |
| 899 | skip_fsspec_s3fs(fs) |
| 900 | |
| 901 | d = pathfn('directory/') |
| 902 | nd = pathfn('directory/nested/') |
| 903 | |
| 904 | fs.create_dir(nd) |
| 905 | fs.delete_dir_contents(d) |
| 906 | with pytest.raises(pa.ArrowIOError): |
| 907 | fs.delete_dir(nd) |
| 908 | fs.delete_dir_contents(nd, missing_dir_ok=True) |
| 909 | with pytest.raises(pa.ArrowIOError): |
| 910 | fs.delete_dir_contents(nd) |
| 911 | fs.delete_dir(d) |
| 912 | with pytest.raises(pa.ArrowIOError): |
| 913 | fs.delete_dir(d) |
| 914 | |
| 915 | |
| 916 | def _check_root_dir_contents(config): |
nothing calls this directly
no test coverage detected