MCPcopy Create free account
hub / github.com/apache/arrow / test_create_dir

Function test_create_dir

python/pyarrow/tests/test_fs.py:835–849  ·  view source on GitHub ↗
(fs, pathfn)

Source from the content-addressed store, hash-verified

833
834
835def test_create_dir(fs, pathfn):
836 # s3fs fails deleting dir fails if it is empty
837 # (https://github.com/dask/s3fs/issues/317)
838 skip_fsspec_s3fs(fs)
839 d = pathfn('test-directory/')
840
841 with pytest.raises(pa.ArrowIOError):
842 fs.delete_dir(d)
843
844 fs.create_dir(d)
845 fs.delete_dir(d)
846
847 d = pathfn('deeply/nested/test-directory/')
848 fs.create_dir(d, recursive=True)
849 fs.delete_dir(d)
850
851
852def test_delete_dir(fs, pathfn):

Callers

nothing calls this directly

Calls 4

skip_fsspec_s3fsFunction · 0.85
pathfnFunction · 0.85
delete_dirMethod · 0.45
create_dirMethod · 0.45

Tested by

no test coverage detected