<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hello JCIFS support team,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m thinking to enhance SmbFile to include this feature. <o:p>
</o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Am I on the right track? What is the process to publish these changes.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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?
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-top:15.0pt"><b><span style="font-size:12.0pt;color:#00A1DE">Sridhar Jonnalagadda<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-bottom:3.75pt"><span style="font-size:10.5pt;color:#616365">Sr Developer - Java<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:3.75pt;margin-right:0in;margin-bottom:3.75pt;margin-left:0in">
<b><span style="font-size:10.0pt;color:#00A1DE">C  | </span></b><span style="font-size:10.0pt;color:#616365">425.533.6817<br>
</span><a href="mailto:SridharJonnalagadda234@air-watch.com"><b><span style="font-size:10.0pt;color:blue">SridharJonnalagadda234@air-watch.com</span></b></a><span style="font-size:10.0pt;color:#616365"><br>
</span><a href="http://www.air-watch.com/"><b><span style="font-size:10.0pt;color:#00A1DE">www.air-watch.com</span></b></a><span style="font-size:10.0pt;color:#616365">
</span><b><span style="font-size:10.0pt;color:#00A1DE"><o:p></o:p></span></b></p>
<p class="MsoNormal" style="mso-margin-top-alt:3.75pt;margin-right:0in;margin-bottom:7.5pt;margin-left:0in">
<span style="font-size:10.0pt;color:#616365">Interact with AirWatch via </span><a href="https://twitter.com/AirWatchMDM"><b><span style="font-size:10.0pt;color:#00A1DE">Twitter</span></b></a><span style="font-size:10.0pt;color:#616365">,
</span><a href="http://www.linkedin.com/groups?gid=2202943&trk=hb_side_g"><b><span style="font-size:10.0pt;color:#00A1DE">LinkedIn</span></b></a><span style="font-size:10.0pt;color:#616365"> and
</span><a href="https://plus.google.com/u/0/106579500291096176030/posts"><b><span style="font-size:10.0pt;color:#00A1DE">Google+</span></b></a><span style="font-size:10.0pt;color:#616365">
<o:p></o:p></span></p>
<p class="MsoNormal"><a href="http://www.air-watch.com/"><b><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#00A1DE;text-decoration:none"><img border="0" width="625" height="125" id="Picture_x0020_3" src="cid:image003.jpg@01CFEE26.7E36C400" alt="AirWatch - We Simplify Enterprise Mobility"></span></b></a><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;color:#616365">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.</span><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>