Skip to content

Conversation

@sdc50
Copy link
Member

@sdc50 sdc50 commented Apr 17, 2025

add get_dir and put_dir methods to async client

araglu added 3 commits April 30, 2025 14:52
- Refactor _with_stats() because they referenced 'file_name' outside the function which caused all files to have the same timestamp
- Create directories before uploading files
- Set timestamps on remote files after uploading
- Switch to integer timestamps because the remote filesystem does not show microseconds
- Remove extra log lines for each file
- Add info log lines about number of files to transfer
- Remove TaskGroup from put_dir to avoid sending too many simultaneous requests
It conflicts with W504 so we need to pick one, and W503 is what Black
formats to.
Copy link
Collaborator

@araglu araglu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good and tests well. Thanks!

@araglu araglu merged commit 9d6b669 into main Jun 9, 2025
2 checks passed
@araglu araglu deleted the put_dir branch June 9, 2025 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants