java.lang.Object
ca.stellardrift.gitpatcher.internal.Utils

public class Utils extends Object
Internal helper methods.

No guarantees of stable API.

  • Method Details

    • capitalize

      public static String capitalize(String input)
      Capitalize the first character of the provided string.

      If provided with an empty string, an empty string will be returned.

      Parameters:
      input - the input
      Returns:
      the capitalized input
    • deleteRecursively

      public static boolean deleteRecursively(Path dir) throws IOException
      Delete a directory and any subdirectories.
      Parameters:
      dir - the directory to delete
      Throws:
      IOException - if deletion fails
    • isEmptyDir

      public static boolean isEmptyDir(Path dir) throws IOException
      Throws:
      IOException