Java file delete on NFS drive
- by RenegadeAndy
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