[jcifs] smbFile.delete() throws "jcifs.smb.SmbException: The system cannot find the path specified"

Hammerl, Maximilian - Extern maximilian.hammerl.extern at unique.ch
Mon Jul 31 11:26:43 GMT 2006


Hi everyone,

I've got a piece of code, which doesn't work:

SmbFile file = new SmbFile(url);
			
if (file.exists() == true)
{
	file.delete();
}

url =
smb://<domain>;<user>:<password>@<host>//<sharename>/<path>/<filename>

Function delete() returns "jcifs.smb.SmbException: The system cannot
find the path specified".


As found in an earlier thread
(http://lists.samba.org/archive/jcifs/2005-August/005340.html) this
seems to be a bug, but fixed 
since jcifs-1.2.3
(http://lists.samba.org/archive/jcifs/2005-August/005399.html). 

I'm using jcifs-1.2.9. So what is going wrong?

Can anyone provide help for this issue?

Kind regards,
Max.
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the jcifs mailing list