tustvold commented on issue #5277:
URL: https://github.com/apache/arrow-rs/issues/5277#issuecomment-1876765028

   I would expect something along the lines of the following **free** functions 
added to `local.rs`
   
   ```
   /// Download a remote object to a local [`File`]
   pub async fn download(store: &dyn ObjectStore, location: &Path, opts: 
GetOptions, file: &mut std::fs::File) -> Result<()> {
       ...
   }
   
   /// Upload a local [`File`] to a remote object store
   pub async fn upload(store: &dyn ObjectStore, location: &Path, opts: 
PutOptions, file: &mut std::fs::File) -> Result<()> {
       ...
   }
   ```
   
   I would like to avoid adding these methods to the `ObjectStore` trait, as it 
is already getting quite large and these methods are unlikely to benefit from 
specialization


-- 
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]

Reply via email to