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 Path
createDirectoriesIfNotExists
(@NotNull Path path) If the directory does not exist in the specified path, creates its parent directory and it.static Path
createFileIfNotExists
(@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
-