Class DeleteOnUnlock

java.lang.Object
com.seibel.distanthorizons.coreapi.util.jar.DeleteOnUnlock

public class DeleteOnUnlock extends Object
Attempts to delete a given file path repeatedly until the file is unlocked.
NOTE: don't move this class. If this class is moved, then old jars won't be able to find it.
  • Field Details

    • SUCCESS_EXIT_CODE

      public static int SUCCESS_EXIT_CODE
    • FAIL_EXIT_CODE

      public static int FAIL_EXIT_CODE
    • ERROR_EXIT_CODE

      public static int ERROR_EXIT_CODE
  • Constructor Details

    • DeleteOnUnlock

      public DeleteOnUnlock()
  • Method Details

    • main

      public static void main(String[] args)
      args[0] the file path to delete. Should be encoded in UTF-8. args[1] the file path to write logs to, can be null.