public class FileOperationsKt
Modifier and Type | Method and Description |
---|---|
static java.io.File |
createDirectoryIfNotExists(java.lang.String path)
Creates a directory if it does not yet exist
|
public static java.io.File createDirectoryIfNotExists(java.lang.String path)
Creates a directory if it does not yet exist
First, the method checks if the directory exists. If not, the method will try to create the directory. If the creation of the directory fails, a FileSystemException is thrown
path
- The path of the directory to create