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

Read_dir in recursive mode #26

Closed
ZakiGomaa opened this issue Mar 21, 2024 · 1 comment
Closed

Read_dir in recursive mode #26

ZakiGomaa opened this issue Mar 21, 2024 · 1 comment

Comments

@ZakiGomaa
Copy link

ZakiGomaa commented Mar 21, 2024

Hello,

How can we modify read_dir function to list all files in the given directory and all its subdirectories too? Is there some -r flag that can be provided?

Thank you

@antonscheffer
Copy link
Owner

antonscheffer commented Mar 24, 2024

as_sftp.read_dir doesn't has any flags, not even a -r. It shouldn't be that hard to create a recursive/iterative variant your self, just use the is_directory attribute.

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

No branches or pull requests

2 participants