8000 Add Methods to Put and Get Whole Directories by sdc50 · Pull Request #80 · erdc/pyuit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add Methods to Put and Get Whole Directories #80

New issue 8000

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

Merged
merged 6 commits into from
Jun 9, 2025
Merged

Add Methods to Put and Get Whole Directories #80

merged 6 commits into from
Jun 9, 2025

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.

2 participants
0