[jcifs] Problem setting attributes for directories

Michael B Allen mba2000 at ioplex.com
Tue Jun 21 05:05:26 GMT 2005


On Mon, 20 Jun 2005 19:56:38 +0200
Thomas Bley <bley at in.tum.de> wrote:

> using:
>          f.setAttributes( f.getAttributes() | f.ATTR_HIDDEN );
> 
> gives me:
> Exception in thread "main" jcifs.smb.SmbException: Access is denied.
> 	at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:436)

What does this do?:

   f.setAttributes( f.ATTR_HIDDEN );

If it still fails it's not a bug in the mask as I previously thought. From
glancing at the code I can see there is a mask used to filter what
attributes can be set so it's probably a bug in the flags/options used
to open the file. I will have to look at a packet capture and compare
to see where we're going wrong.

Mike


More information about the jcifs mailing list