Delete a file in use

Discussion in 'Plugin Development' started by RcExtract, Aug 6, 2018.

Thread Status:
Not open for further replies.
  1. Offline

    RcExtract

    Title says all. How to delete a file in use (a file locked by process)? This is not related to forgetting to close I/O resources.
     
  2. Offline

    LaPiMoNsTeR

    Did you try file.delete() ?
     
  3. Online

    timtower Administrator Administrator Moderator

    @RcExtract Don't think that you can, lock is there for a reason.
     
  4. Offline

    RcExtract

  5. Offline

    RcExtract

    Its bukkit related since PluginClassLoader is in bukkit api.
     
  6. My bad, I only read the original post, forgot to read the comments.
     
Thread Status:
Not open for further replies.

Share This Page