[jcifs] SmbFile.delete() method return type

Vella, Shon svella at identityautomation.com
Fri Feb 27 08:26:40 MST 2015

If it fails it will throw an exception, which you should catch and handle.


On Fri, Feb 27, 2015 at 7:57 AM, M. D. <moder at abv.bg> wrote:

>  Hello,
> I have a question for the community.
> Since SmbFile.delete() returns void instead of boolean as is java.io.File,
> is it safe to assume that successfully returning from SmbFile.delete()
> would indicate that the file was actually deleted? Would there be any need
> do additional checks for existance with SmbFile.exists() afterwards?
> Best regards,
> M.D
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/jcifs/attachments/20150227/bb59eb0d/attachment.html>

More information about the jCIFS mailing list