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

Function test_localfs_file_info

python/pyarrow/tests/test_fs.py:1174–1185  ·  view source on GitHub ↗
(localfs)

Source from the content-addressed store, hash-verified

1172
1173
1174def test_localfs_file_info(localfs):
1175 fs = localfs['fs']
1176
1177 file_path = pathlib.Path(__file__)
1178 dir_path = file_path.parent
1179 [file_info, dir_info] = fs.get_file_info([file_path.as_posix(),
1180 dir_path.as_posix()])
1181 assert file_info.size == file_path.stat().st_size
1182 assert file_info.mtime_ns == file_path.stat().st_mtime_ns
1183 check_mtime(file_info)
1184 assert dir_info.mtime_ns == dir_path.stat().st_mtime_ns
1185 check_mtime(dir_info)
1186
1187
1188def test_mockfs_mtime_roundtrip(mockfs):

Callers

nothing calls this directly

Calls 3

check_mtimeFunction · 0.85
PathMethod · 0.45
get_file_infoMethod · 0.45

Tested by

no test coverage detected