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

Function check_copied_files

python/pyarrow/tests/test_fs.py:2070–2074  ·  view source on GitHub ↗
(destination_dir)

Source from the content-addressed store, hash-verified

2068 f.write(b'test2')
2069
2070 def check_copied_files(destination_dir):
2071 with localfs.open_input_stream(str(destination_dir / "file1")) as f:
2072 assert f.read() == b"test1"
2073 with localfs.open_input_stream(str(destination_dir / "file2")) as f:
2074 assert f.read() == b"test2"
2075
2076 # Copy directory with local file paths
2077 destination_dir1 = tempdir / "destination1"

Callers 1

Calls 2

open_input_streamMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected