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

🔧 change sftp dir methods to accept AsRef<Path> #314

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

k0i
Copy link
Contributor

@k0i k0i commented Mar 30, 2024

Motivation

I noticed that sftp's readdir function takes only Path .
I think it is comfortable to accept &str .

So I changed the methods argument a little bit to take AsRef<Path>.

Could you please review the changes?

If this change is unacceptable, please kindly close this RR.
Sorry for taking your time 🙇 !

@k0i k0i changed the title 🔧 change sftp dir methods to accept AsStr 🔧 change sftp dir methods to accept AsRef<Path> Mar 30, 2024
@yodaldevoid
Copy link
Collaborator

Thank you for the patches! This is definitely a good improvement.

As long as the tests pass I'll get this merged.

@yodaldevoid yodaldevoid merged commit 1a7f36f into alexcrichton:master Apr 18, 2024
8 checks passed
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