Class FileUtils
java.lang.Object
com.github.siroshun09.configapi.core.util.FileUtils
Utility class used for internal processing of this library
-
Method Summary
Modifier and TypeMethodDescriptionstatic PathcreateDirectoriesIfNotExists(@NotNull Path path) If the directory does not exist in the specified path, creates its parent directory and it.static PathcreateFileIfNotExists(@NotNull Path path) If the file does not exist in the specified path, creates its parent directory and it.
-
Method Details
-
createFileIfNotExists
If the file does not exist in the specified path, creates its parent directory and it.- Parameters:
path- file path- Returns:
- given file path
- Throws:
IOException- if an I/O error occursNullPointerException- if the path is null
-
createDirectoriesIfNotExists
If the directory does not exist in the specified path, creates its parent directory and it.- Parameters:
path- directory path- Returns:
- given file path
- Throws:
IOException- if an I/O error occursNullPointerException- if the path is null
-