title: Slow file listing with jCIFS on Windows
body: <p>jCIFS is a great library for connecting to SMB shares on Android, and it works excellently with almost all setups I've tested with.</p>
  
  <p>I do, however, experience incredibly slow performance when using the <code>SmbFile.listFiles()</code> method on Windows-based network shares, but only when logging in as an actual user on the PC. It can take up to several minutes to simply get a list of folders, and sometimes nothing happens at all.</p>
  
  <p>If I choose to log in as a guest (by using "guest" as user, and leaving the password empty), everything is fast. Usually less than a second.</p>
  
  <p>The following code works and it's fast:</p>
  
  <pre><code>try {
     NtlmPasswordAuthentication authentication = new NtlmPasswordAuthentication("", "guest", ""); // domain, user, password
     currentFolder = new SmbFile("smb://host-name-for-my-pc", authentication);
     SmbFile[] listFiles = currentFolder.listFiles();
  } catch (Exception e) { // Using Exception for the sake of demonstration...
  </code></pre>
  
  <p>This code, however, doesn't work / is very slow:</p>
  
  <pre><code>try {
     NtlmPasswordAuthentication authentication = new NtlmPasswordAuthentication("", "my-username", "my-password"); // domain, user, password
     currentFolder = new SmbFile("smb://host-name-for-my-pc", authentication);
     SmbFile[] listFiles = currentFolder.listFiles();
  } catch (Exception e) { // Using Exception for the sake of demonstration...
  </code></pre>
  
  <p>I spoke to another guy, who's using jCIFS, and he is experiencing the same problem.</p>
  
  <p>I've tried connecting to the same share using ES File Explorer, which also utilizes jCIFS, and it's fast regardless of using a real account or logging in as a guest.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>If I use <code>SmbFile("username:password@server/")</code> instead, it works! I really want it to work with <code>NtlmPasswordAuthentication</code>, though. Any ideas?</p>