[jcifs] Array sort by date modified in smbfiles

Iván ivan.lois at gmail.com
Thu Oct 28 08:45:36 MDT 2010


I'm implementing a project with JCIFS where I want to sort the array
returned by the method "listFiles". The order needs to be done by date of
last modification.
Arrays.Sort returns error like this:
java.lang.ClassCastException: jcifs.smb.SmbFile cannot be cast to
java.lang.Comparable
Sorry for my English. Thanks.
Iván
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/jcifs/attachments/20101028/7d79edb2/attachment.html>


More information about the jCIFS mailing list