Node-SMB / marsaud-smb2

SMB2 Client
53 stars 46 forks source link

readdir only lists 510 items #49

Closed eyzi closed 4 years ago

eyzi commented 4 years ago

Hi, I was wondering why my program kept saying the file doesn't exist while I can confirm that it does in the shared folder. Upon trial and error, I found that the .readdir() function only lists the first 510 items while I have 3002 items in my shared folder and the file I'm looking for is near the bottom.

Is there a way to get the complete list of files using the .readdir() function or at least sort the files in descending order first before getting the list?

Thanks.

DRKRahul commented 4 years ago

Facing same issue, I have 597 items in my shared folder but able to read only 480 items

julien-f commented 4 years ago

The PR #50 should solve this issue, can you please test it?

DRKRahul commented 4 years ago

The PR #50 should solve this issue, can you please test it?

It worked