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

Method get_file_info

python/pyarrow/tests/test_fs.py:66–80  ·  view source on GitHub ↗
(self, paths)

Source from the content-addressed store, hash-verified

64 return path
65
66 def get_file_info(self, paths):
67 info = []
68 for path in paths:
69 if "file" in path:
70 info.append(FileInfo(path, FileType.File))
71 elif "dir" in path:
72 info.append(FileInfo(path, FileType.Directory))
73 elif "notfound" in path:
74 info.append(FileInfo(path, FileType.NotFound))
75 elif "badtype" in path:
76 # Will raise when converting
77 info.append(object())
78 else:
79 raise IOError
80 return info
81
82 def get_file_info_selector(self, selector):
83 if selector.base_dir != "somedir":

Calls 2

FileInfoClass · 0.50
appendMethod · 0.45

Tested by

no test coverage detected