Skip to content
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

adding support for local to remote operations in shutil.py::copytree #227

Merged
merged 2 commits into from
Jul 19, 2023

Conversation

brno32
Copy link
Contributor

@brno32 brno32 commented Jun 27, 2023

pt. 2 of addressing #221

Tackling symlinks looks a little daunting, so I'd like to circle back after making sure my current approach is aligned with the project.

It crossed my mind to have both LocalDirEntry and SMBDirEntry inherit from the same abstract class, but I've opted to keep it simple

@codecov
Copy link

codecov bot commented Jun 27, 2023

Codecov Report

Merging #227 (224339e) into master (285ad28) will decrease coverage by 0.02%.
The diff coverage is 80.00%.

@@            Coverage Diff             @@
##           master     #227      +/-   ##
==========================================
- Coverage   99.09%   99.07%   -0.02%     
==========================================
  Files          24       24              
  Lines        5081     5085       +4     
==========================================
+ Hits         5035     5038       +3     
- Misses         46       47       +1     
Flag Coverage Δ
99.07% <80.00%> (-0.02%) ⬇️
py3.10 99.03% <80.00%> (-0.02%) ⬇️
py3.11 99.03% <80.00%> (-0.02%) ⬇️
py3.7 99.02% <80.00%> (-0.02%) ⬇️
py3.8 99.03% <80.00%> (-0.02%) ⬇️
py3.9 99.07% <80.00%> (-0.02%) ⬇️
x64 99.07% <80.00%> (-0.02%) ⬇️
x86 98.99% <80.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/smbclient/shutil.py 95.32% <80.00%> (-0.39%) ⬇️

@brno32 brno32 force-pushed the copytree-local-to-remote branch from d20b026 to a4e3e9b Compare June 27, 2023 22:37
@brno32 brno32 force-pushed the copytree-local-to-remote branch from a4e3e9b to 337cc04 Compare June 27, 2023 22:43
@brno32
Copy link
Contributor Author

brno32 commented Jul 5, 2023

@jborean93 are you okay with this kind of approach?

@jborean93
Copy link
Owner

Hey sorry I haven't had a chance to look at this yet, I've got a few things on my plate right now.

src/smbclient/_os.py Outdated Show resolved Hide resolved
src/smbclient/shutil.py Outdated Show resolved Hide resolved
@brno32 brno32 requested a review from jborean93 July 19, 2023 11:28
@brno32
Copy link
Contributor Author

brno32 commented Jul 19, 2023

Good suggestions! I can work on tackling symlinks next if this looks like a good starting point

@jborean93
Copy link
Owner

Sorry it took so long to review this.

@jborean93 jborean93 merged commit b81d5f1 into jborean93:master Jul 19, 2023
@brno32 brno32 deleted the copytree-local-to-remote branch July 19, 2023 19:13
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