[jcifs] Problems with example CopyTo
Stephen More
stephen.more at gmail.com
Tue Dec 26 17:45:20 GMT 2006
I tried the example java CopyTo smb://... smb://... and nothing happened.
But java -Djcifs.util.loglevel=2 CopyTo smb://... smb://... results in:
jcifs.smb.SmbAuthException: Access is denied.
at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:500)
at jcifs.smb.SmbTransport.send(SmbTransport.java:611)
at jcifs.smb.SmbSession.send(SmbSession.java:239)
at jcifs.smb.SmbTree.send(SmbTree.java:109)
at jcifs.smb.SmbFile.send(SmbFile.java:690)
at jcifs.smb.SmbFile.open0(SmbFile.java:830)
at jcifs.smb.SmbFile.open(SmbFile.java:848)
at jcifs.smb.SmbFile.copyTo0(SmbFile.java:2000)
at jcifs.smb.SmbFile.copyTo0(SmbFile.java:1987)
at jcifs.smb.SmbFile.copyTo(SmbFile.java:2137)
at CopyTo.main(CopyTo.java:9)
( version 1.2.11 )
Shouldn't CopyTo be throwing this exception ?
I can reproduce this by removing/adding permissions to the destination
directory.
-Thanks
Steve More
More information about the jcifs
mailing list