JCIFS pagination

"[email protected]" <[email protected]> Wed, 22 Oct 2014 22:32:11 +0000
Newsgroups gmane.network.samba.java
Message-ID <D96764799B959D4895E065D4ECCA0FF8AA4E584B@ATLP-EXMBX03.airwatch.corp>
Hello JCIFS support team,

We have a requirement where there will be multiple calls, to list contents of a folder. From MS-CIFS doc, there are two commands TRANS_FIND_FIRST2 and TRANS_FIND_NEXT2 that might be used to retrieve folder contents as pages.

The listFiles() API in SmbFile is retrieving all the contents as one big list. I see the code is using TRANS_FIND_FIRST2 and TRANS_FIND_NEXT2. SmbFile does not have API to fulfill the requirement.

The wrapper service around this library, is based on async event driven approach. We are using Vertx polyglot framework. There are chances where the contents in the folder keeps growing and memory consumption becomes non-deterministic.

I'm thinking to enhance SmbFile to include this feature.

Am I on the right track? What is the process to publish these changes.

From my end, one long term solution need is to make it as async library using netty and Observable pattern for most of the SmbFile APIs.  Is it a valid thing to be on road map for this library?

Sridhar Jonnalagadda
Sr Developer - Java
C  | 425.533.6817
[email protected]<mailto:[email protected]>
www.air-watch.com<http://www.air-watch.com/>
Interact with AirWatch via Twitter<https://twitter.com/AirWatchMDM>, LinkedIn<http://www.linkedin.com/groups?gid=2202943&trk=hb_side_g> and Google+<https://plus.google.com/u/0/106579500291096176030/posts>
[AirWatch - We Simplify Enterprise Mobility]<http://www.air-watch.com/>
This communication is confidential and is intended to be privileged pursuant to applicable law. If you are not a designated recipient of this message, please do not read, copy, use or disclose this message or its attachments. Notify the sender by replying to this message and delete or destroy all copies of this message and attachments in all media. Thank you.
image003.jpg (image/jpeg, 6.2 KB) - not displayed