-
Notifications
You must be signed in to change notification settings - Fork 180
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
Question: Depth search for Files/Directories #430
Comments
If I understand you correctly you're trying to do something like |
BTW, be sure to use |
That good to know. I'll test that tomorrow.
Though biggest performance
impact in my test case was definitely the open() calls. :/
Also to your first question. I need to retrieve all results. Not stop on first find, that's what makes this thing a little harder on performance side.
…On Tue 12. Feb 2019 at 5:27 PM, Pepijn Van Eeckhoudt < ***@***.***> wrote:
BTW, be sure to use Directory#iterator instead of Directory#list for
this. Directory listing over SMB is done in chunks. list will block until
the entire directory has been listed and will hold all entries for the
directory in memory. iterator only holds on to one chunk and will fetch
the next chunk when needed. This allows you to stream the results which
will be much less resource intensive than list.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#430 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFMOJnqdsiU6Caf8k9cXMB18OieYGUNEks5vMutqgaJpZM4a2_0i>
.
|
Hi @hierynomus I have created the implementation for Listing all files recursively with single session. Thanks |
Hey, is there any way of realising a depth search for specific files ?
I tried manually to implement a depth search with recursion and Directory#list(). But this is really really slow on a share with many directories, cause I have to share#open() every new recursion step individually, which takes up some time.
Or can I change any of the required parameters for share#open() to be "faster" e.g. only retrieve It's meta data, or enough to call Directory#list() on it ?
I tried reading through the Specification, and found out that there is no actual SMB method for it, but I may be wrong, or missing something.
Hope someone can help me on this.
The text was updated successfully, but these errors were encountered: