[jcifs] jCIFS Digest, Vol 121, Issue 4

Brett Johnson brett.michael.johnson at gmail.com
Fri Jan 25 14:38:48 MST 2013


Reto,

.DS_Store is a regular file, not a directory.
You cannot listFiles on it.

$ ls -la .DS_Store 
-rwxr-xr-x@ 1 bjohnson  bjohnson  15364 Nov 14 12:03 .DS_Store

$ file .DS_Store
.DS_Store: data

--
Brett M. Johnson


On Jan 25, 2013, at 11:00 AM, jcifs-request at lists.samba.org wrote:

> Send jCIFS mailing list submissions to
> 	jcifs at lists.samba.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://lists.samba.org/mailman/listinfo/jcifs
> or, via email, send a message with subject or body 'help' to
> 	jcifs-request at lists.samba.org
> 
> You can reach the person managing the list at
> 	jcifs-owner at lists.samba.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of jCIFS digest..."
> 
> 
> Today's Topics:
> 
>   1. Re: SmbFile.listFiles crash with .DS_Store (Michael B Allen)
>   2. Re: jcifs and Mountain Lion smbx server (Michael B Allen)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Thu, 24 Jan 2013 23:49:24 -0500
> From: Michael B Allen <ioplex at gmail.com>
> To: Reto Merz <Reto.Merz at abacus.ch>
> Cc: jcifs at lists.samba.org
> Subject: Re: [jcifs] SmbFile.listFiles crash with .DS_Store
> Message-ID:
> 	<CAGMFw4jv9+xOi_wS4-mPy-7bNKJOO6-me3wvQA3YnUZg-X1FDg at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> On Jan 24, 2013 11:08 PM, "Reto Merz" <Reto.Merz at abacus.ch> wrote:
>> 
>> Hello,
>> 
>> SmbFile.listFiles does not work with .DS_Store:
>> 
>> jcifs.smb.SmbException: smb://myMachine/myShare/.DS_Store directory
>> must end with '/'
> 
> Hi Reto,
> 
> Have you tied adding the slash? Maybe that file is technically a directory
> in which case you need the slash.
> 
> Mike
> 
>>        at jcifs.smb.SmbFile.doFindFirstNext(SmbFile.java:1977)
>>        at jcifs.smb.SmbFile.doEnum(SmbFile.java:1738)
>>        at jcifs.smb.SmbFile.listFiles(SmbFile.java:1715)
>>        at jcifs.smb.SmbFile.listFiles(SmbFile.java:1648)
>> 
>> JCIFS: jcifs-1.3.17.jar
>> 
>> Thanks
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.samba.org/pipermail/jcifs/attachments/20130124/36b08c64/attachment-0001.html>
> 
> ------------------------------
> 
> Message: 2
> Date: Thu, 24 Jan 2013 23:53:18 -0500
> From: Michael B Allen <ioplex at gmail.com>
> To: Amir <thesubmitter at gmail.com>
> Cc: jcifs at lists.samba.org
> Subject: Re: [jcifs] jcifs and Mountain Lion smbx server
> Message-ID:
> 	<CAGMFw4h4gt4-_O0dRANbW2pNE51AYr6fG=iec_dW7Euz94U0kw at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> On Jan 24, 2013 11:08 PM, "Amir" <thesubmitter at gmail.com> wrote:
>> 
>> I've been trying to get this combination to work without much success, I
> am under the impression that in Mountain Lion (actually as of Lion) Apple
> created their own smb server "SMBX" and it uses smb2..... Does this make
> sense?
> 
> Hmm, so Mountain Lion only accepts SMB2? I doubt that. What is the error
> you're getting? Post it.
> 
> Mike
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.samba.org/pipermail/jcifs/attachments/20130124/a08c4801/attachment-0001.html>
> 
> ------------------------------
> 
> _______________________________________________
> jCIFS mailing list
> jCIFS at lists.samba.org
> https://lists.samba.org/mailman/listinfo/jcifs
> 
> 
> End of jCIFS Digest, Vol 121, Issue 4
> *************************************



More information about the jCIFS mailing list