-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Efficient copying via shutil #227
Comments
Hi @four43 Sorry for the delayed response. A shutil like interface would be a great addition. @barneygale are there plans to make In the meantime we could sketch out a Cheers, |
Yes! I'm working on adding
|
Wonderful! So we can support this natively once it lands in @four43 I recommend subscribing to #193 to be notified when I find the time to work on moving to |
You guys are legends. Thank you so much for all the effort and work. Subbed to that issue and looking forward to it. |
This is a great extension of pathlib who's core describes file system directories and objects. We are looking to efficiently download and upload data from various backends. shutil.copytree and shutil.copy2, which it leans on, are a nice way to copy between Path objects. Is there fanciness in there that's causing these to not work? copytree blew up on a UPath S3 remote path as the destination and seemed just copy things locally after it stringified the path...
Are these nice methods just calling
str([path])
and breaking all the nice things? Are there any related helper methods for copying and moving provided?Thanks a lot!
Related: #175
EDIT: Uh oh, I'm seeing a lot of legacy os.path style stuff in the source: https://github.com/python/cpython/blob/main/Lib/shutil.py#L432
The text was updated successfully, but these errors were encountered: