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

Method get_file_info_selector

python/pyarrow/tests/test_fs.py:82–96  ·  view source on GitHub ↗
(self, selector)

Source from the content-addressed store, hash-verified

80 return info
81
82 def get_file_info_selector(self, selector):
83 if selector.base_dir != "somedir":
84 if selector.allow_not_found:
85 return []
86 else:
87 raise FileNotFoundError(selector.base_dir)
88 infos = [
89 FileInfo("somedir/file1", FileType.File, size=123),
90 FileInfo("somedir/subdir1", FileType.Directory),
91 ]
92 if selector.recursive:
93 infos += [
94 FileInfo("somedir/subdir1/file2", FileType.File, size=456),
95 ]
96 return infos
97
98 def create_dir(self, path, recursive):
99 if path == "recursive":

Callers

nothing calls this directly

Calls 1

FileInfoClass · 0.50

Tested by

no test coverage detected