public final class FileUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
ensureDirectoryExists(@Nullable File directory)
Ensure the
directory exists. |
static void |
ensureFileExists(File file) |
public static void ensureDirectoryExists(@Nullable File directory)
directory exists.
When the directory is missing, create it (and all its missing parents.
Throw an UncheckedIOException when the directory could not be
created.
Do nothing when directory is null.
public static void ensureFileExists(File file)
Copyright © 2023 abego Software GmbH, Germany. All rights reserved.