[jcifs] SmbFile.delete
Michael B Allen
mba2000 at ioplex.com
Mon Aug 15 18:07:03 GMT 2005
Post the UNC path and corresponding SMB URL you are using that represents
the file to be deleted. I suspect your SMB URL is invalid.
Mike
On Mon, 15 Aug 2005 08:47:28 +0000 (UTC)
Koji <seaslug at hotmail.co.jp> wrote:
> Hi all,
>
> I have some problem with deleting a SmbFile.
>
> The files on the server A could be deleted successfully.
> But deleting some files on the server B causes "jcifs.smb.SmbException:
> Access is denied.", and deleting others causes "jcifs.smb.SmbException:
> The system cannot find the file specified.".
>
> Target file existed and is permitted full access.
> I can't find out reasonable differences of these servers or files.
> Both servers are Windows2000 server.
>
> Does anyone have tips to avoid this promlem?
>
> On the other hand, I went into the source code and I found that the
> request message of the "delete" contains folder and filename information
> but not server and shared folder name information. So I modified the
> source code and set "\server\sharedFolder\folder\filename.ext" as filename.
> Then all of my test case go through successfully.
>
> Is my modification correct?
>
> Thanks in advance for your help.
>
> Koji
>
More information about the jcifs
mailing list