[jcifs] smbfolder.listFiles(SmbFileFilter) drops folders with a leading whitespace

André Warnier aw at ice-sa.com
Fri Jun 4 10:35:50 MDT 2010


Craig Stires wrote:
>  
> 
> wanted to followup with an update on an issue i had found in January.
> hopefully, this will help isolate the problem
> 
>  
> 
> I'm using jcifs 1.3.14
> 
>  
> 
> The problem happens whenever a folder name starts with a ' '.  When
> smbfolder.listFiles(SmbFileFilter) is called on a folder containing
> subfolders with leading spaces, the SmbFile[] list returned has the leading
> space stripped off.
> 

Solution : do not use paths with spaces in them. They are evil, and have 
already caused the loss of thousands of productive hours.
Whoever invented them needs to be found, stripped, tarred, dunk in 
feathers and run out of town.
Or at least he should get an IgNobel prize.



More information about the jCIFS mailing list