tustvold commented on PR #5528:
URL: https://github.com/apache/arrow-rs/pull/5528#issuecomment-2007910797

   So thinking about this a bit more, I think the racyness shouldn't matter, as 
we'll just loop round and try again. Something like this should work:
   
   ```
   ErrorKind::NotFound => match from.exists() {
       true => create_parent_dirs(&to, source)?,
       false => return Err(Error::NotFound { path: from, source }.into()),
   },
   ```
   
   This pattern can then be applied to `rename`, `copy` and 
`copy_if_not_exists`, with tests of the same


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