hierynomus / smbj

Server Message Block (SMB2, SMB3) implementation in Java
Other
713 stars 180 forks source link

Treeing out entire directory #555

Closed david-upham closed 3 years ago

david-upham commented 4 years ago

Can someone help me understand how smbj could allow me to search the entire share tree for folders of a specific name? So far I can only seem to search one folder deep.

neoxpert commented 4 years ago

Afaik there is no way to read or filter a whole directory tree within the SMB protocol itself. The easiest way would be to traverse the directory tree programatically.

david-upham commented 4 years ago

Afaik there is no way to read or filter a whole directory tree within the SMB protocol itself. The easiest way would be to traverse the directory tree programatically.

The only issue with that is that there is a large overhead in traversing each folder structure one at a time. I need a tool designed to grab it all and then search the results. Thanks for your help though. :)

hierynomus commented 3 years ago

Closing this at it seems solved.