[jcifs] Re: SmbFile.delete
Michael B Allen
mba2000 at ioplex.com
Tue Aug 16 17:46:18 GMT 2005
On Tue, 16 Aug 2005 09:53:07 +0000 (UTC)
Koji <seaslug at hotmail.co.jp> wrote:
> My problem is file.exists() returns true but file.delete() fails with
> "jcifs.smb.SmbException: The system cannot find the path specified.".
I don't know then. The only thing I can think of is that you have some
Japanese characters somewhere and it's breaking the URL. What is the
local encoding on your workstation and what encoding is the server? Are
they both Unicode?
> By the way, I found another fact.
> When I can delete the file successfully, the filename parameter in the
> request of queryPath is "\folder\filename.ext" which is same as the
> filename parameter in request of delete.
> And in falure case, the filename parameter of queryPath is
Yeah, this is wrong. The server and share part should not be there. The
URL is getting messed up somewhere internally. At this point I can't
really do anyting without a capture .
More information about the jcifs