Re: SmbFile.listFiles crash with .DS_Store
Michael B Allen <[email protected]> Thu, 24 Jan 2013 23:49:24 -0500
| Newsgroups | gmane.network.samba.java |
|---|---|
| Message-ID | <CAGMFw4jv9+xOi_wS4-mPy-7bNKJOO6-me3wvQA3YnUZg-X1FDg@mail.gmail.com> |
On Jan 24, 2013 11:08 PM, "Reto Merz" <[email protected]> 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