Tom-Newton opened a new issue, #44864:
URL: https://github.com/apache/arrow/issues/44864
### Describe the enhancement requested
I have a usecase where we want to copy a list of files from source to
destination, and they are not all in a directory.
For example:
```
pyarrow.fs.copy_files(
["file0", "directory/file1"], ["file0", "file1"], source_filesystem=...,
destination_filesystem=...
)
```
I think it's reasonable not to support directories in the `sources` or
`destinations` lists.
On the C++ side this is already implemented
https://github.com/apache/arrow/tree/main/cpp/src/arrow/filesystem/filesystem.cc#L625-L660
To keep compatibility of the public API we could support both list and
individual value with something like
https://github.com/apache/arrow/tree/main/python/pyarrow/acero.py#L295-L298
### Component(s)
Python
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]