Delete a file in use

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

  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 Ninja on the waves Moderator

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

    RcExtract

  5. Offline

    Xydez

  6. Offline

    RcExtract

    Its bukkit related since PluginClassLoader is in bukkit api.
     
  7. Offline

    Xydez

    My bad, I only read the original post, forgot to read the comments.
     

Share This Page