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

Method get_file_info

python/pyarrow/fs.py:315–324  ·  view source on GitHub ↗
(self, paths)

Source from the content-addressed store, hash-verified

313 return FileInfo(path, ftype, size=size, mtime=info.get("mtime", None))
314
315 def get_file_info(self, paths):
316 infos = []
317 for path in paths:
318 try:
319 info = self.fs.info(path)
320 except FileNotFoundError:
321 infos.append(FileInfo(path, FileType.NotFound))
322 else:
323 infos.append(self._create_file_info(path, info))
324 return infos
325
326 def get_file_info_selector(self, selector):
327 if not self.fs.isdir(selector.base_dir):

Callers 9

read_fileMethod · 0.45
file?Method · 0.45
directory?Method · 0.45
test_get_file_infoMethod · 0.45
_ensure_filesystemFunction · 0.45
copy_filesFunction · 0.45
_ensure_multiple_sourcesFunction · 0.45
_ensure_single_sourceFunction · 0.45

Calls 4

_create_file_infoMethod · 0.95
FileInfoClass · 0.50
infoMethod · 0.45
appendMethod · 0.45

Tested by 4

read_fileMethod · 0.36
file?Method · 0.36
directory?Method · 0.36
test_get_file_infoMethod · 0.36