(arg: tuple[FileSystem, tuple[str, str, Optional[dict]]])
| 583 | os.makedirs(d, exist_ok=True) |
| 584 | |
| 585 | def get_file(arg: tuple[FileSystem, tuple[str, str, Optional[dict]]]): |
| 586 | fs, (src, dest, info) = arg |
| 587 | kw = kwargs |
| 588 | if isinstance(fs, DataFileSystem): |
| 589 | kw = kw | {"info": info} |
| 590 | with callback.branched(src, dest) as child: |
| 591 | fs.get_file(src, dest, callback=child, **kw) |
| 592 | |
| 593 | if batch_size == 1: |
| 594 | ctx: AbstractContextManager = nullcontext() |