Java Code unable to delete file -


my java code unable delete files on the system hard drive.

whenever file.delete() function called, returns false. ideas, why might happening?

file.delete() can fail delete file many reasons including:

  • you don't have correct permissions delete file
  • the file represents directory , directory not empty
  • the file locked process, (or same process in unclosed fileoutputstream)
  • the file doesn't exist

Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -