Java file delete on NFS drive

Posted by RenegadeAndy on Stack Overflow See other posts from Stack Overflow or by RenegadeAndy
Published on 2010-05-19T22:59:28Z Indexed on 2010/05/19 23:20 UTC
Read the original article Hit count: 224

Filed under:
|
|
|

Hey guys.

I am trying to delete a file on a NFS drive.

I have had other problems manipulating files on remote drives such as moving a file - however i got around it by not using the conventional method i.e renameFile but instead properly using input and output streams.

However using the File.delete() returns false , and I have heard suggestions on using the apache commons io FileUtils class - however it just throws an IO exception.

Does anybody have any suggestions on a way to delete a file on a network mounted drive using java?

Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about nfs