Class Utils
java.lang.Object
ca.stellardrift.gitpatcher.internal.Utils
Internal helper methods.
No guarantees of stable API.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringcapitalize(String input) Capitalize the first character of the provided string.static booleandeleteRecursively(Path dir) Delete a directory and any subdirectories.static booleanisEmptyDir(Path dir)
-
Method Details
-
capitalize
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
Delete a directory and any subdirectories.- Parameters:
dir- the directory to delete- Throws:
IOException- if deletion fails
-
isEmptyDir
- Throws:
IOException
-