[jcifs] Re: SmbFile.delete
Michael B Allen
mba2000 at ioplex.com
Wed Aug 17 07:53:50 GMT 2005
On Wed, 17 Aug 2005 07:09:42 +0000 (UTC)
Koji <seaslug at hotmail.co.jp> wrote:
> But I found out one more thing.
> In failure case, the file to be deleted is in DFS(Distributed File System, not
> Duty Free Shop).
>
> And if the file is in DFS, the filename parameter of queryPath is modified
> at SmbTree.java:90. So the filename parameter of queryPath contains the server
> and share part. In other hand, SmbComDelete class has own filename parameter,
> and used it as filename parameter of CIFS request message. So the filename
> parameter is not modified.
>
> When I modified the source code of SmbComDelete like following, delete file
> goes successfully.
>
> SmbComDelete( String fileName ) {
> this.fileName = fileName;
> this.path = fileName; // <- add
Ahh, then this is very likely a bug. I'll look at it, see if your fix
is right, and get it in the next release.
Thanks,
Mike
More information about the jcifs
mailing list