[jcifs] problem

Dmitry Krasnikov duke at land81.nsu.ru
Thu Apr 18 01:18:33 EST 2002

I've got
a problem when listing
URL like this 

within clause

	SmbFile file = new SmbFile(argv[0]);
        SmbFile[] files = file.listFiles();
        for( int i = 0; i < files.length; i++ ) {
            System.out.println( " " +

.... code skipped ...

When i am  outputting just files[i].getName() everything is ok, but when i
am outputting files[i].lastModified() - exception occures... 
where is the bug?

Exception in thread "main" jcifs.smb.SmbException: Directory invalid
        at jcifs.smb.SmbTransport.send(SmbTransport.java:483)
        at jcifs.smb.SmbSession.send(SmbSession.java:125)
        at jcifs.smb.SmbTree.send(SmbTree.java:64)
        at jcifs.smb.SmbFile.send(SmbFile.java:435)
        at jcifs.smb.SmbFile.queryPath(SmbFile.java:664)
        at jcifs.smb.SmbFile.updateAttributes(SmbFile.java:694)
        at jcifs.smb.SmbFile.lastModified(SmbFile.java:832)
        at ListFiles.main(ListFiles.java:76)

ps: jcifs is not last version... seems to be it 0.6b8 i do not remember
exacly, but in changes i do not found that fix so i think the version is
uncritical here...

WBR, Dmitry.

=[mailto:mainpart at chat.ru]=[mailto:mainpart at mail.ru]=[ICQ:75279462]=

More information about the jcifs mailing list