public class Files extends Object
| Constructor and Description |
|---|
Files() |
| Modifier and Type | Method and Description |
|---|---|
static void |
fsync(File file)
Calls fsync on a file or directory.
|
static void |
mkdirIfNotExists(String path)
Creates the directory named by this pathname if not exists.
|
public static void fsync(File file) throws IOException
file - file or directoryIOException - if an I/O error occurspublic static void mkdirIfNotExists(String path) throws IOException
path - pathnameIOExceptionCopyright © 2023. All rights reserved.