Gee... where do I start?

Does the username this is running under have the proper access to the file
and to the direcory it's in?  What OS is this?  What's the result of
f.canRead() or f.canWrite()?  What about results of those calls for the
parent directory?  What does f.delete() return (does it return true,
meaning it thinks the file was deleted)?

dwh


Deepak C S wrote:

> hi,
>
>         I am trying to delete a file under filesystem in a bean using:
>
>         File f=new File(path-to-file);
>         f.delete();
>
>         But the File isnt getting deleted...Can anybody help??
>
> thanx
> Deeps
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to