(self, paths)
| 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): |