This is a little off-topic but I have implemented a file system service that
I'm using to operate on files on the file system.  For some reason the
delete operation which really just calls file.delete() sometimes doesn't
work.  If you continually call it, it will eventually work but this is bad
for my web application as it returns an error message to the user that the
file could not be deleted.  To get around it I've put the call to the delete
in a while loop that if unsuccessful will keep trying but this is
unacceptable because it takes so much time to delete a file.  Am I missing
something, what is the best way to delete a file from the file system.  I'm
guessing it is having problems deleting the file because some program
(probably the JVM) has still got a hold on it.

thanks,
-Mark

Reply via email to